} /** * Set your callback function to be called after each request. * * There are two methods available to you depending on the scope of your * callback function. * * You can set your callback for a global function using a string: * BattleNetAPI::setCallback( 'myCallback' ); * * Or you can set your callback for a class method using an array: * BattleNetAPI::setCallback( array( 'myClass', 'myCallback' ) ); * * Your callback function whether the request was successful or failed. */ BattleNetAPI::setCallback('myCallback'); /** * Set your maximum number of simultaneous connections. Keep in mind, the higher * the number the more processing and memory usage and the quicker you can * reach your request limits resulting in requests with over query limit errors. * Default: 5 */ BattleNetAPI::setMaxConnections(5); /** * Depending on your server configuration, if you are going to be sending many * requests and can expect it to take more than 20 seconds or use a lot of * memory, you will want to use the BattleNetAPI::noTimeout() function to allow * the script to run continuously without any execution time or memory * limitations. */ //BattleNetAPI::noTimeout();