Created
June 2, 2017 18:30
-
-
Save theinventor/aba304051baf1f1f58b9dd7bd01d1312 to your computer and use it in GitHub Desktop.
Simple example of getting products via RepairShopr API in PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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