Exemple #1
0
 /**
  * @param string $shopwareId
  * @param string $password
  * @return AccessTokenStruct
  * @throws \Exception
  */
 public function getAccessToken($shopwareId, $password)
 {
     $response = $this->doPostRequest('/accesstokens', ['shopwareId' => $shopwareId, 'password' => $password]);
     return $this->structHydrator->hydrateAccessToken($response, $shopwareId);
 }