當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。