public static function recursiveGet($url)
 {
     $data = GuzzleHelper::getAsset($url);
     $currentPage = 1;
     $hasData = true;
     while ($hasData) {
         $currentPage = $currentPage + 1;
         $newUrl = $url . "&page={$currentPage}";
         $next_data = GuzzleHelper::getAsset($newUrl);
         if (!empty($next_data)) {
             $data = array_merge($data, $next_data);
         } else {
             $hasData = false;
         }
     }
     return $data;
 }
 private function simpleGet($canvasItem)
 {
     $urlPieces = $this->initUrl();
     $token = \Crypt::decrypt($_SESSION['userToken']);
     $urlArgs = array();
     $urlPieces[] = $canvasItem;
     //Attach token
     $urlArgs[] = "access_token={$token}&per_page=5000";
     $url = GuzzleHelper::constructUrl($urlPieces, $urlArgs);
     $response = GuzzleHelper::getAsset($url);
     return $response;
 }