Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreGranger committed Sep 30, 2021
1 parent 46ac303 commit 84ac48b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ You need to create a `Client` instance:
$client = new \Sitra\ApiClient\Client([
'apiKey' => 'XXX',
'projetId' => 672,
'baseUrl' => 'https://api.apidae-tourisme.com/',
'OAuthClientId' => 'XXX',
'OAuthSecret' => 'XXX',
'exportDir' => '/tmp/sitraExports',
Expand All @@ -54,7 +53,6 @@ $client = new \Sitra\ApiClient\Client([
'count' => 20,

// For SSO
'ssoBaseUrl' => 'https://base.apidae-tourisme.com',
'ssoRedirectUrl' => 'http://localhost/',
'ssoClientId' => 'XXX',
'ssoSecret' => 'XXX',
Expand Down Expand Up @@ -82,7 +80,7 @@ Result is always a decoded PHP Array.

- `apiKey`: Project API Key;
- `projetId`: Corresponding projetId;
- `baseUrl`: Not mandatory, useful if you want to hit pre-production i.e.;
- `baseUri`: Not mandatory, useful if you want to hit test environment i.e. https://api.apidae-tourisme.cooking/;
- `OAuthClientId`: Only for Metadata, a valid OAuth Client Id;
- `OAuthSecret`: Only for Metadata, the corresponding secret;
- `exportDir`: The directory where we store and extract ZIP exports;
Expand All @@ -93,7 +91,7 @@ Result is always a decoded PHP Array.
- `responseFields`: Allow to filter the fields returned globally for all object related queries ([documentation](http://dev.apidae-tourisme.com/fr/documentation-technique/v2/api-de-diffusion/filtrage-des-donnees));
- `locales`: Allow to filter the locales returned globally for all object related queries ([documentation](http://dev.apidae-tourisme.com/fr/documentation-technique/v2/api-de-diffusion/filtrage-des-langues));
- `count`: Allow to change the number of results globally for all object related queries;
- `ssoBaseUrl`: Base URL for SSO authentication ([documentation](http://dev.apidae-tourisme.com/fr/documentation-technique/v2/oauth/single-sign-on));
- `ssoBaseUrl`: Not mandatory : Base URL for SSO authentication ([documentation](http://dev.apidae-tourisme.com/fr/documentation-technique/v2/oauth/single-sign-on)); Default is https://base.apidae-tourisme.com (production). Test environment : https://base.apidae-tourisme.cooking
- `ssoRedirectUrl`: The URL where SSO user will be sent back in your application;
- `ssoClientId`: The SSO OAuth client ID;
- `ssoSecret`: The SSO OAuth client secret.
Expand Down

0 comments on commit 84ac48b

Please sign in to comment.