SysGetGlobalCDNUrl
Returns the CDN URL for the specified file.
Service | Operation |
---|---|
globalFileV3 | SYS_GET_GLOBAL_CDN_URL |
Method Parameters
Parameter | Description |
---|---|
fileId | File ID |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var fileId = "hjvfsghguhuhrtghgh";
var globalFileProxy = bridge.getGlobalFileV3ServiceProxy();
var postResult = globalFileProxy.sysGetGlobalCDNUrl(fileId);
if (postResult.status == 200) {
// Success!
}
{
"service": "globalFileV3",
"operation": "SYS_GET_GLOBAL_CDN_URL",
"data": {
"fileId": "hjvfsghguhuhrtghgh"
}
}
JSON Response
{
"status": 200,
"data": {
"appServerUrl": "https://api.braincloudservers.com/...f434b1db538b/f/uploadsimplefile.txt",
"cdnUrl": "https://d2b6zwnvr1nyug.cloudfront.net/bc/g/20001/u/107b3aa9-0d9f-4e90-af..."
}
}