com.github.scribejava.apis.wunderlist.WunderlistOAuthService Maven / Gradle / Ivy
package com.github.scribejava.apis.wunderlist;
import java.io.OutputStream;
import com.github.scribejava.apis.WunderlistAPI;
import com.github.scribejava.core.httpclient.HttpClient;
import com.github.scribejava.core.httpclient.HttpClientConfig;
import com.github.scribejava.core.model.OAuthRequest;
import com.github.scribejava.core.oauth.OAuth20Service;
public class WunderlistOAuthService extends OAuth20Service {
public WunderlistOAuthService(WunderlistAPI api, String apiKey, String apiSecret, String callback,
String defaultScope, String responseType, OutputStream debugStream, String userAgent,
HttpClientConfig httpClientConfig, HttpClient httpClient) {
super(api, apiKey, apiSecret, callback, defaultScope, responseType, debugStream, userAgent, httpClientConfig,
httpClient);
}
@Override
public void signRequest(String accessToken, OAuthRequest request) {
super.signRequest(accessToken, request);
request.addHeader("X-Client-ID", getApiKey());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy