Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
added example to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Saunders committed Sep 5, 2010
1 parent 58dc9b8 commit 1c608d4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion examples.php
Expand Up @@ -42,4 +42,19 @@
$player->shots(array('page' => 2, 'per_page' => 10));

# List shots by player's that this player follows
$player->following(array('page' => 5, 'per_page' => 30));
$player->following(array('page' => 5, 'per_page' => 30));

# Loop through some of your shots
$shots = $player->shots();
$i = 0;
$limit = 2;
foreach($shots->shots as $shot){
if ($i < $limit){
# For each shot do some stuff
# $image = $shot->image_teaser_url;
# $title = $shot->title;
# $shoturl = $shot->url;
# echo '<a href="'.$shoturl.'"><img src="'.$image.'" alt="'.$title.'" title="'.$title.'" /></a>';
}
++$i;
}

0 comments on commit 1c608d4

Please sign in to comment.