daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Nov 22nd, 2017 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Redis::throttle('lightspeed_throttle_'.$lsApiModel->id)->allow($lsApiModel->lightspeed_max_requests)->every(300)->then(function () use ($client, $lsApiModel, $pageLimit, $page) {
  2.                 $this->lightspeedCustomersR =
  3.                     $client->request('GET', $lsApiModel->lightspeedBaseApiUrl().'customers.json',[
  4.                         'query' => ['page' => $page, 'limit' => $pageLimit]
  5.                     ])->getBody()->getContents();
  6.             }, function () {
  7.                 return $this->release(300);
  8.             });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top