Skip to content

Instantly share code, notes, and snippets.

@theinventor
Created June 2, 2017 18:30
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 theinventor/aba304051baf1f1f58b9dd7bd01d1312 to your computer and use it in GitHub Desktop.
Save theinventor/aba304051baf1f1f58b9dd7bd01d1312 to your computer and use it in GitHub Desktop.
Simple example of getting products via RepairShopr API in PHP
$subdomain = "demo";
$apiKey = "abc123";
$json = file_get_contents("https://{$subdomain}.repairshopr.com/api/v1/products?api_key={$apiKey}");
$data = json_decode($json);
echo $data->{'products'};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment