We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d91724a + aa5a910 commit a481a6fCopy full SHA for a481a6f
content/php-client/authentication.md
@@ -2,6 +2,19 @@
2
3
You can be authenticated to the REST API either by providing a username and a password or by providing a token and a refresh token.
4
5
+## By App token
6
+
7
+Authenticate with the access token received from an [OAuth authorization](/apps/authentication-and-authorization.html#token-success-response).
8
9
+```php
10
+<?php
11
12
+require_once '/vendor/autoload.php';
13
14
+$clientBuilder = new \Akeneo\Pim\ApiClient\AkeneoPimClientBuilder('http://localhost/');
15
+$client = $clientBuilder->buildAuthenticatedByAppToken('token');
16
+```
17
18
## By username/password
19
20
You can authenticate to the client with your credentials client id/secret and your user/password:
0 commit comments