Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update readme.md

  • Loading branch information...
commit f1bdd6d9c342333a0ecf01e53b7e945f15cceb78 1 parent a5beec0
@mansilladev mansilladev authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 readme.md
View
9 readme.md
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.