public function __construct()
 {
     // Change API endpoint to internal dev server for testing.
     \Zara4\API\Communication\Config::enterDevelopmentMode();
     // Dev credentials.
     $clientId = "poy3h5I18Pl3evZOWu8G12jJoA5Eiknd0Nt";
     $clientSecret = "yXkzFextDeRLu1BBqnhd40zbGsQSKCKR3lq";
     $this->client = new \Zara4\API\Client($clientId, $clientSecret);
 }
Exemple #2
0
 /**
  * Get the url to the given path.
  *
  * @param $path
  * @return string
  */
 public static function url($path)
 {
     return Config::BASE_URL() . $path;
 }