daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Nov 22nd, 2017 63 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
Top