updateInfo.apiKey.getId());
if (facets.size()==0) return 0;
return facets.get(0).start + 1000;
}
public OAuthService getOAuthService(final ApiKey apiKey) {
return new ServiceBuilder()
.provider(WithingsApi.class)
.apiKey(guestService.getApiKeyAttribute(apiKey, "withingsConsumerKey"))
.apiSecret(guestService.getApiKeyAttribute(apiKey, "withingsConsumerSecret"))
.signatureType(SignatureType.QueryString)
.callback(env.get("homeBaseUrl") + "withings/upgradeToken")