文档中心 > API文档

3.30.4.2.1. 

M1客户端被调用,平台客户端在安卓系统上需要按如下方式调用M1:

Intent intent=new Intent("com.seeyon.m1.activity.Login");
 intent.putExtra("ticket", "M1登录以后返回的ticket值");
 intent.putExtra("fromurl", "调用应用的回调地址");
 startActivity(intent);

平台客户端在苹果系统上需要按如下方式调用M1:

iPhone调用:NSURL *m1URL = [NSURL URLWithString:@"sycmpiphone:// {\"ticket\":\"M1登录以后返回的ticket值\", \"fromurl\":\"调用应用的回调地址,类似sycmpiphone\"}"];
 [[UIApplication sharedApplication] openURL:myURL];
 
 
 iPad调用:
 NSURL *m1URL = [NSURL URLWithString:@"sycmpipad:// {\"ticket\":\"M1登录以后返回的ticket值\", \"fromurl\":\"调用应用的回调地址,类似sycmpipad\"}"];
 [[UIApplication sharedApplication] openURL:myURL];