Google Cloud Identity API возвращает 302 при вызове BatchaddJAVA

Программисты JAVA общаются здесь
Anonymous
Google Cloud Identity API возвращает 302 при вызове Batchadd

Сообщение Anonymous »

Ниже приведен мой запрос

Запрос: post https://iid.googleapis.com/iid/v1:batchadd заголовки [access_token_auth = true Authoriz /> {"registration_tokens": ["xxccvc_dummy"], "to": " /thepics /my_topic"} < /p>
< /blockquote>
и я получаю отзыв < /p>

https://iid.googleapis.com/iid/v1:batchAdd, Status[302 Moved Temporarily], Headers[Location=https://accounts.google.com/ServiceLogi ... ve=1209600 Content-Type=text/html;

This is how I am Получение токена доступа < /p>

Код: Выделить всё

Jwt.issuer(serviceEmail)
.scope("https://www.googleapis.com/auth/cloud-platform")
.subject(serviceEmail)
.claim("kid", myConfig.fcmJwtKid())
.audience("https://fcm.googleapis.com/")
.issuedAt(Instant.now())
.expiresAt(Instant.now().plus(1, ChronoUnit.HOURS))
.sign("jwt-private-key.pem");
Я прошел почти всю документацию, но не смог найти причин, почему я мог бы получить это?

Подробнее здесь: https://stackoverflow.com/questions/795 ... l-batchadd

Вернуться в «JAVA»