Permalink
Browse files

Update readme.md

  • Loading branch information...
1 parent a5beec0 commit f1bdd6d9c342333a0ecf01e53b7e945f15cceb78 @mansilladev mansilladev committed Jul 19, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 readme.md
View
@@ -19,12 +19,15 @@ Client libraries make life easier by bringing the API into your native language
$api = new apiService($client);
// Make an API call and store the response in an object
- $StoryList = new StoryList($api -> ArticleMethods -> TopNews ("json","sports"));
+ $StoryList = new StoryList($api->ArticleMethods->TopNews(
+ "json",
+ "sports"
+ ));
// Iterate through the list of stories, and echo the titles
foreach ($StoryList->getStories() as $story) {
- echo("Title: " . $story->getTitle());
- }
+ echo("Title: " . $story->getTitle());
+ }
Above is just a pseudo-PHP-code example of how this library works.

0 comments on commit f1bdd6d

Please sign in to comment.