diff --git a/composer.json b/composer.json index b99cf45..872354b 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "admitad/api", + "name": "meniam/admitad-php-api", "type": "library", "description": "Admitad api library", "keywords": ["admitad", "api"], diff --git a/src/Admitad/Api/Api.php b/src/Admitad/Api/Api.php index d0cb39e..8cfd4bf 100644 --- a/src/Admitad/Api/Api.php +++ b/src/Admitad/Api/Api.php @@ -35,7 +35,7 @@ public function authorizeByPassword($clientId, $clientSecret, $scope, $username, { $query = array( 'client_id' => $clientId, - 'grant_type' => 'password', + 'grant_type' => 'client_credentials', 'username' => $username, 'password' => $password, 'scope' => $scope