zoukankan      html  css  js  c++  java
  • ios 分享腾讯微博

    //初始化weiboApi

    tencent=[[WeiboApi alloc]initWithAppKey:tencentAppKey andSecret:tencentkAppSecret andRedirectUri:tencentkAppReddirectURI andAuthModeFlag:0 andCachePolicy:0]

    //通过auth2.0代理登录

     [tencent loginWithDelegate:self andRootController:self]
    //代理成功,回调方式

    - (void)DidAuthFinished:(WeiboApi *)wbapi_
    {
        NSString  *str=@"";
        UIImage *pic = [UIImage imageNamed:@"install.png"];
        NSMutableDictionary *params = [[NSMutableDictionary alloc]initWithObjectsAndKeys:@"json",@"format",str, @"content",pic, @"pic",nil];
        [tencent requestWithParams:params apiName:@"t/add_pic" httpMethod:@"POST" delegate:self];
    }

    这儿有一个不太清楚的地方,即tencentkAppReddirectURI回调地址,该回调地址是:
      “我的应用》应用XXX》基本信息》应用网址”

  • 相关阅读:
    redis 学习(17) -- RDB
    51单片机程序技巧
    无效设备解决办法
    210板子启动笔记
    RFID读卡器设置卡
    Socket简介
    /etc/hosts.conf
    TVP5150摄像头
    maven小试牛刀
    2014图灵技术图书最受欢迎TOP15
  • 原文地址:https://www.cnblogs.com/shareze/p/4054303.html
Copyright © 2011-2022 走看看