Authentication

  • Login to the application and navigate to /connector/client
  • Create new client and generate Client ID and Client secret
  • Once you have created the client, you may request an access token by issuing a POST request to the /oauth/token route
    $http = new GuzzleHttp\Client;
    $response = $http->post('https://erp.dstadvertising.com/oauth/token',
    [
    'form_params' => [
    'grant_type' => 'password',
    'client_id' => 'client-id',
    'client_secret' => 'client-secret',
    'username' => 'taylor@laravel.com',
    'password' => 'my-password',
    'scope' => '',
    ], ]);