TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFcCloudRenderingGetaccesstokenRequest req = new AlibabaFcCloudRenderingGetaccesstokenRequest();
req.setFcGroup("fc-dg-common");
req.setFcName("cg");
AlibabaFcCloudRenderingGetaccesstokenRequest.Params obj1 = new AlibabaFcCloudRenderingGetaccesstokenRequest.Params();
obj1.setServiceName("getAccessTokenAndOpenIdService");
obj1.setFcLoginToken("加密token");
obj1.setSceneId("2022221467038");
req.setParams(obj1);
AlibabaFcCloudRenderingGetaccesstokenResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaFcCloudRenderingGetaccesstokenRequest req = new AlibabaFcCloudRenderingGetaccesstokenRequest();
req.FcGroup = "fc-dg-common";
req.FcName = "cg";
AlibabaFcCloudRenderingGetaccesstokenRequest.ParamsDomain obj1 = new AlibabaFcCloudRenderingGetaccesstokenRequest.ParamsDomain();
obj1.ServiceName = "getAccessTokenAndOpenIdService";
obj1.FcLoginToken = "加密token";
obj1.SceneId = "2022221467038";
req.Params_ = obj1;
AlibabaFcCloudRenderingGetaccesstokenResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaFcCloudRenderingGetaccesstokenRequest;
$req->setFcGroup("fc-dg-common");
$req->setFcName("cg");
$params = new Params;
$params->service_name="getAccessTokenAndOpenIdService";
$params->fc_login_token="加密token";
$params->scene_id="2022221467038";
$req->setParams(json_encode($params));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.fc.cloud.rendering.getaccesstoken' \
-d 'partner_id=apidoc' \
-d 'sign=3F055F6B41633B9C89BB7E9DA5058263' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-29+17%3A04%3A02' \
-d 'v=2.0' \
-d 'fc_group=fc-dg-common' \
-d 'fc_name=cg' \
-d 'params=%7B%5C%22serviceName%5C%22%3A%5C%22getAccessTokenAndOpenIdService%5C%22%2C%5C%22fcLoginToken%5C%22%3A%5C%22%5C%22%7D'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaFcCloudRenderingGetaccesstokenRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.fc_group="fc-dg-common"
req.fc_name="cg"
req.params="{\"serviceName\":\"getAccessTokenAndOpenIdService\",\"fcLoginToken\":\"\"}"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.fc.cloud.rendering.getaccesstoken");
add_param(pRequest,"fc_group","fc-dg-common");
add_param(pRequest,"fc_name","cg");
add_param(pRequest,"params","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.fc.cloud.rendering.getaccesstoken', {
'fc_group':'fc-dg-common',
'fc_name':'cg',
'params':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})