本文整理汇总了Java中com.github.scribejava.core.builder.api.BaseApi类的典型用法代码示例。如果您正苦于以下问题:Java BaseApi类的具体用法?Java BaseApi怎么用?Java BaseApi使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BaseApi类属于com.github.scribejava.core.builder.api包,在下文中一共展示了BaseApi类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth10aService> getApi() {
final DefaultApi10a api;
if (this.alwaysConfirmAuthorization == false) {
api = TwitterApi.Authenticate.instance();
} else {
api = TwitterApi.instance();
}
return api;
}
示例2: OAuthAsyncHttpClient
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
public OAuthAsyncHttpClient(BaseApi apiInstance, String consumerKey, String consumerSecret, String callbackUrl,
OAuthTokenHandler handler) {
this.apiInstance = apiInstance;
this.handler = handler;
if (callbackUrl == null) { callbackUrl = OAuthConstants.OUT_OF_BAND; };
this.service = new ServiceBuilder()
.apiKey(consumerKey)
.apiSecret(consumerSecret).callback(callbackUrl)
.build(apiInstance);
}
示例3: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
public BaseApi<S> getApi() {
return api;
}
示例4: setApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
public void setApi(final BaseApi<S> api) {
this.api = api;
}
示例5: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth20Service> getApi() {
return GoogleApi20.instance();
}
示例6: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth20Service> getApi() {
return DropboxApi20.INSTANCE;
}
示例7: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth20Service> getApi() {
return FacebookApi.instance();
}
示例8: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth10aService> getApi() {
return YahooApi.instance();
}
示例9: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth20Service> getApi() {
return new GenericApi20(authUrl, tokenUrl);
}
示例10: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth20Service> getApi() {
return new OrcidApi20();
}
示例11: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth20Service> getApi() {
return new StravaApi20(approvalPrompt);
}
示例12: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth20Service> getApi() {
return Foursquare2Api.instance();
}
示例13: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth20Service> getApi() {
return new WordPressApi20();
}
示例14: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth20Service> getApi() {
return LinkedInApi20.instance();
}
示例15: getApi
import com.github.scribejava.core.builder.api.BaseApi; //导入依赖的package包/类
@Override
protected BaseApi<OAuth20Service> getApi() {
return new WindowsLiveApi20();
}