NAME
WWW::Shopify::Nest - Object representing a group of Shopify APIs, which can be alternated over to get around the call limit.
DESCRIPTION
Inherits all methods from WWW::Shopify. This is not a toy. Don't use this unless there's a good reason; be nice to Shopify and don't swamp their servers.
METHODS
new($shop_url, $email, $pass, $app_count)
Creates a new shop, without using the actual API, uses automated form submission to log in. Then creates $app_count private apps in the store to use as slaves to conduct business.
In order to make sure that these extra apps don't end up clogging up your shop, we keep track of all nests, and make sure to delete all the apps at END time.
generate_children($app_count)
Called by the constructor. Generates $app_count children.
children($self)
Returns an array of children WWW::Shopify::Private, the size of $app_count. The child at index 0 is always the active child.
free_children
Deletes the specified child APIs from shopify.
DESTROY($self)
Destructor. Calls free_children on children.
use_url($self, $method, $url, $specs, $hash)
Determines whether we've hit the call limit. If we have, reperforms the call with a new API.
If the entire stack of APIs is exhausted, we die with the original error.