Skip to content

Instantly share code, notes, and snippets.

@andyfowler
Created May 15, 2014 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyfowler/3a25f905e51308a71d7b to your computer and use it in GitHub Desktop.
Save andyfowler/3a25f905e51308a71d7b to your computer and use it in GitHub Desktop.
$response = $aboutmeApi->get();
$response->getPage(); // returns `Aboutme_Page` created from API response JSON
// no API consumer needs to know about AboutMe's API structure, only your own implemented methods.
$page->getFirstName();
$page->getBio();
// in testing
$page = Aboutme_Page::createFromResponse($yourfixture);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment