supersdk

文档中心

文档中心

下载文档

Korea SDK

Get user authentication info

Interface description: Query whether the email address and mobile phone number are authenticated.

Call example:

// isMask: Whether mask is required
NSDictionary *dic = @{@"isMask" : @"1"}; 
[SuperSDK invoke:BCORE_MODULE_PLATFORM funcName:@"autheInfoJson" parameters:dic];

Callback Log Print:

2017-12-04 16:25:11.487864+0800 youzu[1664:487593] ****** Received Callback
 moduleName : platform,
 funcName : autheInfoJson,
 parameters : {
    code = 1;
    data =     {
        data =         {
            "bind_email" = 1;
            "bind_phone" = 0;
        };
        desc = "\U6210\U529f";
        status = 0;
    };
    msg = "\U9a8c\U8bc1\U4fe1\U606f\U83b7\U53d6\U6210\U529f";
}

Open Authentication page

Interface description: Open Email and Mobile authentication page.

Call example:

// type: 0(Email/Mobile Authentication),1(Email Authentication),2(Mobile Authentication)
NSDictionary *dic = @{@"type" : @"1"};
[SuperSDK invoke:BCORE_MODULE_PLATFORM funcName:@"showAuthennticationView" parameters:dic];

Callback Log Print:

2017-12-04 16:25:11.487864+0800 youzu[1664:487593] ****** Received Callback
 moduleName : platform,
 funcName : showAuthennticationView,
 parameters : {
    code = 1;
    data = 0;    // data: 0(Cancel Authentication), 1(Email Authentication successful),2(Mobile Authentication successful)
    msg = "\U8d26\U53f7\U8ba4\U8bc1\U53d6\U6d88";
}

Open Payment Privacy agreement page

Interface Description: Open the payment privacy agreement page. Only needed for first-time payment.

Call example:

[SuperSDK invoke:BCORE_MODULE_PLATFORM funcName:@"openPayProtocol" parameters:nil];

Callback Log Print:

2017-12-04 16:25:11.487864+0800 youzu[1664:487593] ****** Received Callback
 moduleName : platform,
 funcName : openPayProtocol,
 parameters : {
    code = 1;
    msg = "\U8d26\U53f7\U8ba4\U8bc1\U53d6\U6d88";
 }

Client single login

 NSDictionary *parameters =@{ BCORE_KEY_OTHER_FUNC_NAME : @"GuestLogin"};
[SuperSDK invoke:BCORE_MODULE_PLATFORM   funcName: BCORE_FUNC_OTHER_FUNCTION parameters:parameters];

Client upgrade

nterface description: Client upgrade to Facebook or Gta account

[SuperSDK invoke:BCORE_MODULE_PLATFORM funcName:BCORE_FUNC_GUEST_UPGRADE parameters:nil];

Client upgrade to Gta account

[SuperSDK invoke:BCORE_MODULE_PLATFORM funcName:@"showAccountLink" parameters:@{
    @"bindType":@"GTA"
}];

Get product information

Interface description: Pass in the real commodity id to get the currency type and other parameters.

NSDictionary *parameters = @{
       @"products" : @"pid1|pid2|pid3..."// Separate multiple commodity ids with "|"
      };
[SuperSDK invoke:BCORE_MODULE_PLATFORM funcName:@"getProductsInfos" parameters:parameters];

Callback example:

2017-11-10 16:01:46.950422+0800 youzuGTA[21539:5052325] ****** Received Callback
 moduleName : platform,
 funcName : getProductsInfos,
 parameters : {
  "desc" : "successfully obtained product information",
  "data" : [
    {
      "price_currency_code" : "CNY",
      "productId" : "com.uuzu.zctx1",
      "price" : "¥6",
      "title" : "currency",
      "country_code" : "CN",
      "description" : "currency, used to buy game items",
      "language_code" : "zh"
    },
    {
      "price_currency_code" : "CNY",
      "productId" : "com.uuzu.zctx3",
      "price" : "¥12",
      "title" : "currency",
      "country_code" : "CN",
      "description" : "in-game, used to purchase virtual items",
      "language_code" : "zh"
    }
  ],
  "code" : 1
}