Chilkat Examples

ChilkatHOME.NET Core C#Android™AutoItCC#C++Chilkat2-PythonCkPythonClassic ASPDataFlexDelphi ActiveXDelphi DLLGoJavaLianjaMono C#Node.jsObjective-CPHP ActiveXPHP ExtensionPerlPowerBuilderPowerShellPureBasicRubySQL ServerSwift 2Swift 3,4,5...TclUnicode CUnicode C++VB.NETVBScriptVisual Basic 6.0Visual FoxProXojo Plugin

PowerBuilder Web API Examples

Primary Categories

ABN AMRO
AWS Secrets Manager
AWS Security Token Service
AWS Translate
Activix CRM
Adyen
Alibaba Cloud OSS
Amazon Cognito
Amazon DynamoDB
Amazon MWS
Amazon Pay
Amazon Rekognition
Amazon SP-API
Amazon Voice ID
Aruba Fatturazione
Azure Maps
Azure Monitor
Azure OAuth2
Azure Storage Accounts
Backblaze S3
Banco Inter
Belgian eHealth Platform
Bitfinex v2 REST
Bluzone
BrickLink
Bunny CDN
CallRail
CardConnect
Cerved
ClickBank
Clickatell
Cloudfare
Constant Contact
DocuSign
Duo Auth MFA
ETrade
Ecwid
Egypt ITIDA
Egypt eReceipt
Etsy
Facebook
Faire
Frame.io
GeoOp
GetHarvest
Global Payments
Google People
Google Search Console
Google Translate
Google Vision
Hungary NAV Invoicing
IBM Text to Speech
Ibanity
IntakeQ
JCC Cyprus
Jira
Lightspeed
MYOB
Magento
Mailgun
Malaysia MyInvois

Mastercard
MedTunnel
MercadoLibre
MessageMedia
Microsoft Calendar
Microsoft Group
Microsoft Tasks and Plans
Microsoft Teams
Moody's
Okta OAuth/OIDC
OneLogin OIDC
OneNote
OpenAI ChatGPT
PRODA
PayPal
Paynow.pl
Peoplevox
Populi
QuickBooks
Rabobank
Refinitiv
Royal Mail OBA
SCiS Schools Catalogue
SII Chile
SMSAPI
SOAP finkok.com
Salesforce
SendGrid
Shippo
Shopify
Shopware
Shopware 6
SimpleTexting
Square
Stripe
SugarCRM
TicketBAI
TikTok Shop
Trello
Twilio
Twitter API v2
Twitter v1
UPS
UniPin
VoiceBase
Vonage
WaTrend
Walmart v3
Wasabi
WhatsApp
WiX
WooCommerce
WordPress
Xero
Yahoo Mail
Yapily
Yousign
ZATCA
Zendesk
Zoom
_Miscellaneous_
eBay
effectconnect
hacienda.go.cr

 

 

 

(PowerBuilder) Frame.io - Create a Folder

Create a folder asset as a child to the root_asset_id.

For more information, see https://docs.frame.io/docs/root-asset-ids

Chilkat ActiveX Downloads

ActiveX for 32-bit and 64-bit Windows

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Json
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_Team_id
integer li_Public_item_count
string ls_Properties
string ls_Deleted_at
string ls_Fps
string ls_Rating
string ls_Description
string ls_Updated_at
string ls_Cover_asset_id
string ls_Archive_scheduled_at
string ls_Subtitle_tracks
string ls_Index
integer li_Item_count
string ls_Account_id
string ls_Name
string ls_Checksums
string ls_Audio_tracks
string ls_Duration
string ls_Label
integer li_Is_session_watermarked
string ls_Parent_id
integer li_Versions
string ls_Project_id
string ls_Resource_id
integer li_V_private
integer li_Frames
string ls_Autoversion_id
string ls_V_type
string ls_Uploaded_at
string ls_Creator_id
integer li_User_permissionsCan_download
integer li_User_permissionsCan_modify_template
integer li_User_permissionsCan_public_share_presentation
integer li_User_permissionsCan_public_share_review_link
integer li_User_permissionsCan_share_downloadable_presentation
integer li_User_permissionsCan_share_downloadable_review_link
integer li_User_permissionsCan_share_unwatermarked_presentation
integer li_User_permissionsCan_share_unwatermarked_review_link
integer li_Shared
integer li_Is_360
integer li_Comment_count
string ls_Archived_at
string ls_Filetype
string ls_Id
string ls_Hard_deleted_at
integer li_Copy
integer li_Is_hls_required
string ls_Archive_status
string ls_Inserted_at
integer li_Filesize

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

// Implements the following CURL command:

// curl --request POST \
// --url https://api.frame.io/v2/assets/<root_asset_id>/children \
// --header 'authorization: Bearer <FRAME_IO_DEV_TOKEN>' \
// --header 'content-type: application/json' \
// --data '{"type":"folder", "name": "Folder at root"}'

// Use the following online tool to generate HTTP code from a CURL command
// Convert a cURL Command to HTTP Source Code

// Use this online tool to generate code from sample JSON:
// Generate Code to Create JSON

// The following JSON is sent in the request body.

// {
//   "type": "folder",
//   "name": "Folder at root"
// }

loo_Json = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_Json.ConnectToNewObject("Chilkat.JsonObject")

loo_Json.UpdateString("type","folder")
loo_Json.UpdateString("name","Folder at root")

loo_Http.SetRequestHeader("content-type","application/json")
// Adds the "Authorization: Bearer <FRAME_IO_DEV_TOKEN>" header.
loo_Http.AuthToken = "<FRAME_IO_DEV_TOKEN>"

// Our root_asset_id = 4ecb383f-71a8-4233-b665-d8f75136f554
// You'll need to modify the following line to use your root asset ID.

loo_Resp = loo_Http.PostJson3("https://api.frame.io/v2/assets/4ecb383f-71a8-4233-b665-d8f75136f554/children","application/json",loo_Json)
if loo_Http.LastMethodSuccess = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_Json
    return
end if

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

loo_Resp.GetBodySb(loo_SbResponseBody)
loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Resp.Header
    Write-Debug "Failed."
    destroy loo_Resp
    destroy loo_Http
    destroy loo_Json
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

destroy loo_Resp

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "team_id": "95a5fbad-688d-46fc-aef1-2f011dd76c10",
//   "public_item_count": 0,
//   "properties": null,
//   "deleted_at": null,
//   "fps": null,
//   "rating": null,
//   "description": null,
//   "updated_at": "2020-08-18T03:31:59.699011Z",
//   "cover_asset_id": null,
//   "archive_scheduled_at": null,
//   "subtitle_tracks": null,
//   "index": -7.0,
//   "item_count": 0,
//   "account_id": "b1cd046b-a3bf-4ef8-81a6-0afd74ecc455",
//   "name": "FolderA",
//   "checksums": null,
//   "audio_tracks": null,
//   "duration": null,
//   "label": "none",
//   "is_session_watermarked": false,
//   "parent_id": "4ecb383f-71a8-4233-b665-d8f75136f554",
//   "versions": 0,
//   "project_id": "e76653c4-6cc0-4c47-936b-f7885b477dc0",
//   "resource_id": null,
//   "private": false,
//   "frames": 0,
//   "autoversion_id": null,
//   "type": "folder",
//   "uploaded_at": "2020-08-18T03:31:59.697174Z",
//   "creator_id": "34b4f98a-7cc9-4159-8f46-c7c3d837fc6f",
//   "user_permissions": {
//     "can_download": true,
//     "can_modify_template": false,
//     "can_public_share_presentation": true,
//     "can_public_share_review_link": true,
//     "can_share_downloadable_presentation": true,
//     "can_share_downloadable_review_link": true,
//     "can_share_unwatermarked_presentation": true,
//     "can_share_unwatermarked_review_link": true
//   },
//   "shared": false,
//   "is_360": false,
//   "_type": "folder",
//   "comment_count": 0,
//   "archived_at": null,
//   "filetype": null,
//   "id": "039845e8-bffe-4d6b-88d3-c780bae06342",
//   "hard_deleted_at": null,
//   "copy": false,
//   "is_hls_required": false,
//   "archive_status": null,
//   "inserted_at": "2020-08-18T03:31:59.699011Z",
//   "filesize": 0
// }

// Sample code for parsing the JSON response...
// Use the following online tool to generate parsing code from sample JSON:
// Generate Parsing Code from JSON

ls_Team_id = loo_JResp.StringOf("team_id")
li_Public_item_count = loo_JResp.IntOf("public_item_count")
ls_Properties = loo_JResp.StringOf("properties")
ls_Deleted_at = loo_JResp.StringOf("deleted_at")
ls_Fps = loo_JResp.StringOf("fps")
ls_Rating = loo_JResp.StringOf("rating")
ls_Description = loo_JResp.StringOf("description")
ls_Updated_at = loo_JResp.StringOf("updated_at")
ls_Cover_asset_id = loo_JResp.StringOf("cover_asset_id")
ls_Archive_scheduled_at = loo_JResp.StringOf("archive_scheduled_at")
ls_Subtitle_tracks = loo_JResp.StringOf("subtitle_tracks")
ls_Index = loo_JResp.StringOf("index")
li_Item_count = loo_JResp.IntOf("item_count")
ls_Account_id = loo_JResp.StringOf("account_id")
ls_Name = loo_JResp.StringOf("name")
ls_Checksums = loo_JResp.StringOf("checksums")
ls_Audio_tracks = loo_JResp.StringOf("audio_tracks")
ls_Duration = loo_JResp.StringOf("duration")
ls_Label = loo_JResp.StringOf("label")
li_Is_session_watermarked = loo_JResp.BoolOf("is_session_watermarked")
ls_Parent_id = loo_JResp.StringOf("parent_id")
li_Versions = loo_JResp.IntOf("versions")
ls_Project_id = loo_JResp.StringOf("project_id")
ls_Resource_id = loo_JResp.StringOf("resource_id")
li_V_private = loo_JResp.BoolOf("private")
li_Frames = loo_JResp.IntOf("frames")
ls_Autoversion_id = loo_JResp.StringOf("autoversion_id")
ls_V_type = loo_JResp.StringOf("type")
ls_Uploaded_at = loo_JResp.StringOf("uploaded_at")
ls_Creator_id = loo_JResp.StringOf("creator_id")
li_User_permissionsCan_download = loo_JResp.BoolOf("user_permissions.can_download")
li_User_permissionsCan_modify_template = loo_JResp.BoolOf("user_permissions.can_modify_template")
li_User_permissionsCan_public_share_presentation = loo_JResp.BoolOf("user_permissions.can_public_share_presentation")
li_User_permissionsCan_public_share_review_link = loo_JResp.BoolOf("user_permissions.can_public_share_review_link")
li_User_permissionsCan_share_downloadable_presentation = loo_JResp.BoolOf("user_permissions.can_share_downloadable_presentation")
li_User_permissionsCan_share_downloadable_review_link = loo_JResp.BoolOf("user_permissions.can_share_downloadable_review_link")
li_User_permissionsCan_share_unwatermarked_presentation = loo_JResp.BoolOf("user_permissions.can_share_unwatermarked_presentation")
li_User_permissionsCan_share_unwatermarked_review_link = loo_JResp.BoolOf("user_permissions.can_share_unwatermarked_review_link")
li_Shared = loo_JResp.BoolOf("shared")
li_Is_360 = loo_JResp.BoolOf("is_360")
ls_V_type = loo_JResp.StringOf("_type")
li_Comment_count = loo_JResp.IntOf("comment_count")
ls_Archived_at = loo_JResp.StringOf("archived_at")
ls_Filetype = loo_JResp.StringOf("filetype")
ls_Id = loo_JResp.StringOf("id")
ls_Hard_deleted_at = loo_JResp.StringOf("hard_deleted_at")
li_Copy = loo_JResp.BoolOf("copy")
li_Is_hls_required = loo_JResp.BoolOf("is_hls_required")
ls_Archive_status = loo_JResp.StringOf("archive_status")
ls_Inserted_at = loo_JResp.StringOf("inserted_at")
li_Filesize = loo_JResp.IntOf("filesize")


destroy loo_Http
destroy loo_Json
destroy loo_SbResponseBody
destroy loo_JResp

 

© 2000-2024 Chilkat Software, Inc. All Rights Reserved.