I undersstand how scary it is when our little dogs get into something they should not !
i Hope your dog will be okay! I really do n ot know if this will harm your dog, because it was the first time it ever happened, I think it will be ok. I think if it was happening all the time then tere is a big problem.
Just make sure yours is drinking water, and eating .Your dog will eat when hungry . his/her regular food. Talk to your vet too, just for your piece of mind, and your dogs safety.