当前位置: 首页>>代码示例>>Java>>正文


Java ShareSDK.logApiEvent方法代码示例

本文整理汇总了Java中cn.sharesdk.framework.ShareSDK.logApiEvent方法的典型用法代码示例。如果您正苦于以下问题:Java ShareSDK.logApiEvent方法的具体用法?Java ShareSDK.logApiEvent怎么用?Java ShareSDK.logApiEvent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cn.sharesdk.framework.ShareSDK的用法示例。


在下文中一共展示了ShareSDK.logApiEvent方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: a

import cn.sharesdk.framework.ShareSDK; //导入方法依赖的package包/类
private void a() {
    String str = null;
    if (!(this.e == null || this.e.length == 0)) {
        str = this.e[0];
        for (int i = 1; i < this.e.length; i++) {
            str = str + "," + this.e[i];
        }
    }
    if (this.d) {
        ShareSDK.logApiEvent("com.sina.weibo.sdk.auth.sso.SsoHandler.authorize", this.c);
    } else {
        ShareSDK.logApiEvent("com.sina.weibo.sdk.auth.sso.SsoHandler.authorizeWeb", this.c);
    }
    Intent intent = new Intent(this.activity, SinaActivity.class);
    intent.putExtra("action", 1);
    intent.putExtra("appkey", this.a);
    intent.putExtra("isUserClient", this.d);
    intent.putExtra("redirectUrl", this.b);
    String str2 = "permissions";
    if (str == null) {
        str = "";
    }
    intent.putExtra(str2, str);
    SinaActivity.a(new b(this));
    this.activity.startActivity(intent);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:27,代码来源:a.java

示例2: getAuthorizeUrl

import cn.sharesdk.framework.ShareSDK; //导入方法依赖的package包/类
public String getAuthorizeUrl() {
    String urlEncode;
    ShareSDK.logApiEvent("/oauth2.0/authorize", c());
    String b = b();
    try {
        urlEncode = Data.urlEncode(getRedirectUri(), com.qiniu.android.common.Constants.UTF_8);
    } catch (Throwable th) {
        Ln.e(th);
        urlEncode = getRedirectUri();
    }
    return "https://graph.qq.com/oauth2.0/m_authorize?response_type=token&client_id=" + this.d + com.alipay.sdk.sys.a.b + "redirect_uri=" + urlEncode + com.alipay.sdk.sys.a.b + "display=mobile&" + "scope=" + b;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:13,代码来源:f.java

示例3: a

import cn.sharesdk.framework.ShareSDK; //导入方法依赖的package包/类
public String a(Context context, String str) {
    ArrayList arrayList = new ArrayList();
    arrayList.add(new KVPair(Constants.PARAM_CLIENT_ID, this.c));
    arrayList.add(new KVPair("client_secret", this.d));
    arrayList.add(new KVPair("redirect_uri", this.e));
    arrayList.add(new KVPair("grant_type", "authorization_code"));
    arrayList.add(new KVPair("code", str));
    String b = this.h.b("https://api.weibo.com/oauth2/access_token", arrayList, "/oauth2/access_token", c());
    ShareSDK.logApiEvent("/oauth2/access_token", c());
    return b;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:12,代码来源:i.java

示例4: getAuthorizeUrl

import cn.sharesdk.framework.ShareSDK; //导入方法依赖的package包/类
public String getAuthorizeUrl() {
    ArrayList arrayList = new ArrayList();
    arrayList.add(new KVPair(Constants.PARAM_CLIENT_ID, this.c));
    arrayList.add(new KVPair("response_type", "code"));
    arrayList.add(new KVPair("redirect_uri", this.e));
    if (this.g != null && this.g.length > 0) {
        arrayList.add(new KVPair("scope", TextUtils.join(",", this.g)));
    }
    arrayList.add(new KVPair("display", "mobile"));
    String str = "https://api.weibo.com/oauth2/authorize?" + R.encodeUrl(arrayList);
    ShareSDK.logApiEvent("/oauth2/authorize", c());
    return str;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:14,代码来源:i.java

示例5: b

import cn.sharesdk.framework.ShareSDK; //导入方法依赖的package包/类
private void b() {
    ShareSDK.logApiEvent("com.sina.weibo.sdk.api.share.IWeiboShareAPI.sendRequest", this.c);
    Intent intent = new Intent(this.activity, SinaActivity.class);
    intent.putExtra("action", 2);
    intent.putExtra("token", this.g.getDb().getToken());
    intent.putExtra("appkey", this.a);
    intent.putExtra("redirectUrl", this.b);
    intent.putExtra("isUserClient", this.d);
    AuthorizeListener cVar = new c(this);
    SinaActivity.a(this.h);
    SinaActivity.a(cVar);
    this.activity.startActivity(intent);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:14,代码来源:a.java

示例6: a

import cn.sharesdk.framework.ShareSDK; //导入方法依赖的package包/类
private void a(String str, int i) {
    if (!TextUtils.isEmpty(str) && i > 0) {
        ShareSDK.logApiEvent(str, i);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:6,代码来源:a.java


注:本文中的cn.sharesdk.framework.ShareSDK.logApiEvent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。