https://api.appstoreconnect.apple.com/v1/users:< /p>
Код: Выделить всё
{
"errors": [
{
"status": "401",
"code": "NOT_AUTHORIZED",
"title": "Authentication credentials are missing or invalid.",
"detail": "Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens"
}
]
}
Код: Выделить всё
$data = [
'iss' => $this->issuerId,
'iat' => \Carbon\Carbon::now()->timestamp,
'exp' => \Carbon\Carbon::now()->addMinutes(20)->timestamp,
'aud' => "appstoreconnect-v1"
];
$token = JWT::encode($data, $this->privateKey,'HS256', $this->keyId);
Я ожидаю подключения к API и получения информации о подписках в моем приложении.
Подробнее здесь: https://stackoverflow.com/questions/793 ... on-laravel
Мобильная версия