예제 #1
0
     foreach ($item->tags as $tag) {
         echo "\nTag: " . $tag;
     }
     foreach ($item->snapshots as $snapshot) {
         if ($snapshot->id == $item->snapshot_id) {
             echo "\nURL of selected snapshot: " . $snapshot->download;
         } else {
             echo "\nURL of available snapshot: " . $snapshot->download;
         }
     }
 }
 while ($response->next) {
     # retrieve next set of results from vwflow (if available)
     echo "\n\nGetting next set of " . $response->count . " items, available at: " . $response->next;
     # send get request for next results page
     $response = $client->getItemsFromUrl($response->next);
     # iterate items, echo properties to be used in Wordpress
     foreach ($response->results as $item) {
         echo "\n\nFound new Item with ID: " . $item->id;
         echo "\nItem Name: " . $item->name;
         echo "\nItem Description: " . $item->description;
         echo "\nCreated: " . $item->created;
         echo "\nDuration: " . $item->duration;
         echo "\nEmbed Code: " . $item->embed_code;
         foreach ($item->tags as $tag) {
             echo "\nTag :" . $tag;
         }
         foreach ($item->snapshots as $snapshot) {
             if ($snapshot->id == $item->snapshot_id) {
                 echo "\nURL of selected snapshot: " . $snapshot->download;
             } else {