Cloud Phone Integration FAQ
This topic lists frequently asked questions (FAQs) about integrating Cloud Phone management API operations.
Index
How do I enable authorization-free logon for Cloud Phone?
To enable authorization-free logon, submit a ticket and provide your Alibaba Cloud account UID.
Who are the callers for the Cloud Phone authentication API operations?
The callers of the Cloud Phone authentication API operations are as follows:
Call this operation on the server-side. Use an AccessKey ID and AccessKey secret or another Resource Access Management (RAM) authentication method. Never store the AccessKey ID and AccessKey secret on the client. Do not call this operation from the client.
GetStsToken - Obtain temporary identity credentials
Call this operation on the client.
GetConnectionTicket - Obtain an application connection credential
Call this operation on the client.
Is there a runnable Java backend demo?
We provide a simple server-side demo for your reference.
Download: demo1_authcode.zip
Instructions:
In the
application.propertiesconfiguration file, replaceservice.sdk.accessKeyIdwith your Alibaba Cloud account AccessKey ID, replaceservice.sdk.accessSecretwith your Alibaba Cloud account AccessKey secret, and replaceservice.deploy.regionwith the region where your server-side code is deployed.spring.application.name=demo1 logging.config=classpath:log4j2-file.xml service.sdk.accessKeyId=<YourAccessKeyId> service.sdk.accessSecret=<YourAccessKeySecret> # service.deploy.region service.deploy.region=<YourRegion> sdk.appstream.center.endpoint=appstream-center.aliyuncs.comRun the
mainfunction to start the server locally.Test the server locally using the
curlcommand.Replace
<EndUserId>with the username of the convenience account.curl -X POST http://localhost:8080/auth -H "Content-Type: application/json" -d '{"userId":"<EndUserId>", "requestId":12345678}'