My Business
2K members online now
2K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

Java: do credential refresh fall under 5QPS ( queries per second) limit?

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

We are using java mybusiness client 3.2 with CredentialRefreshListener while creating mybusiness client.

 

class CredentialRefreshListnerImpl implements CredentialRefreshListener {
    private static final Logger logger = LoggerFactory.getLogger(CredentialRefreshListener.class);

    @Override
    public void onTokenResponse(Credential credential, TokenResponse tokenResponse) throws IOException {
        logger.info("onTokenResponse credential AccessToken" + credential.getAccessToken() + " RefreshToken:"
            + credential.getRefreshToken());
        logger.info("CredentialRefreshListnerImpl onTokenResponse tokenResponse" + tokenResponse);
    }

    @Override
    public void onTokenErrorResponse(Credential credential, TokenErrorResponse tokenErrorResponse) throws IOException {
        logger.info("onTokenErrorResponse credential AccessToken: " + credential.getAccessToken() + " RefreshToken:"
            + credential.getRefreshToken());
        logger.info("onTokenErrorResponse tokenErrorResponse" + tokenErrorResponse);
    }

}

 

Question:

1) Does this credential refresh honor 5 QPS limit? (i.e can I have more than 5 credential refresh calls under one second) ?

My Understanding:  As this credential refresh is not  a QUERY we can have more than 5 refresh calls under 1 second

 

Could someone please help me with this?

1 Expert replyverified_user

Re: Java: do credential refresh fall under 5QPS ( queries per second) limit?

Google Employee
# 2
Google Employee

Hi @Vinod Reddy S,

 

No, credential refresh do not fall under 5QPS usage limit.

 

Thanks,

The Google My Business API team