Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(DataFlex) Frame.io - Get Team IDGet your team ID. For more information, see https://docs.frame.io/docs/root-asset-ids
Use ChilkatAx-win32.pkg Procedure Test Handle hoHttp Boolean iSuccess Variant vSbResponseBody Handle hoSbResponseBody Handle hoJResp Integer iRespStatusCode String sImage_64 Integer iProject_count String sDefault_color String sDeleted_at String sImage_256 String sBackground_color String sFont_color String sEmail_branding_type String sEmail_brandingAccent_color String sEmail_brandingBackground_color String sEmail_brandingDefault_accent_color String sEmail_brandingDefault_background_color String sEmail_brandingId String sEmail_brandingImage String sEmail_brandingUpload_url String sBio String sUpdated_at String sLink String sDefault_font_color String sImage_128 Boolean iDark_theme Boolean iDisable_sbwm_internally String sAccount_id String sName String sLocation Boolean iSolo String sWatermark Integer iFile_count Integer iDuration String sImage_32 String sTeam_image String sDefault_background_color String sResource_id String sColor Integer iFrames Integer iStorage Integer iCollaborator_count String sCreator_id String sDefault_session_watermark_template_id Integer iArchived_storage String sSlack_webhook String sUpload_url Integer iMember_count String sV_type String sAsset_lifecycle_policy String sMember_limit String sId String sStorage_limit String sAccess String sInserted_at Integer iFolder_count String sTemp1 // This example assumes the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. Get Create (RefClass(cComChilkatHttp)) To hoHttp If (Not(IsComObjectCreated(hoHttp))) Begin Send CreateComObject of hoHttp End // Implements the following CURL command: // curl \ // -H "Authorization: Bearer <FRAME_IO_DEV_TOKEN>" \ // https://api.frame.io/v2/accounts/<ACCOUNT_ID>/teams // Use the following online tool to generate HTTP code from a CURL command // Convert a cURL Command to HTTP Source Code // Adds the "Authorization: Bearer <FRAME_IO_DEV_TOKEN>" header. Set ComAuthToken Of hoHttp To "<FRAME_IO_DEV_TOKEN>" Get ComSetUrlVar Of hoHttp "account_id" "b1cd046b-a3bf-4ef8-81a6-0afd74ecc455" To iSuccess Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody If (Not(IsComObjectCreated(hoSbResponseBody))) Begin Send CreateComObject of hoSbResponseBody End Get pvComObject of hoSbResponseBody to vSbResponseBody Get ComQuickGetSb Of hoHttp "https://api.frame.io/v2/accounts/{$account_id}/teams" vSbResponseBody To iSuccess If (iSuccess = False) Begin Get ComLastErrorText Of hoHttp To sTemp1 Showln sTemp1 Procedure_Return End Get Create (RefClass(cComChilkatJsonObject)) To hoJResp If (Not(IsComObjectCreated(hoJResp))) Begin Send CreateComObject of hoJResp End Get pvComObject of hoSbResponseBody to vSbResponseBody Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess Set ComEmitCompact Of hoJResp To False Showln "Response Body:" Get ComEmit Of hoJResp To sTemp1 Showln sTemp1 Get ComLastStatus Of hoHttp To iRespStatusCode Showln "Response Status Code = " iRespStatusCode If (iRespStatusCode >= 400) Begin Showln "Response Header:" Get ComLastHeader Of hoHttp To sTemp1 Showln sTemp1 Showln "Failed." Procedure_Return End // Sample JSON response: // (Sample code for parsing the JSON response is shown below) // { // "image_64": null, // "project_count": 1, // "default_color": "5B53FF", // "deleted_at": null, // "image_256": null, // "background_color": null, // "session_watermark_templates": [ // ], // "font_color": null, // "email_branding": { // "_type": "email_branding", // "accent_color": null, // "background_color": null, // "default_accent_color": "5B53FF", // "default_background_color": "F7F8FA", // "id": "71cddf30-cdd6-4db9-9f1f-f119c3a6c36d", // "image": null, // "upload_url": "https://frameio-uploads-production.s3-accelerate.amazonaws.com/email_branding/71c...508199e26038" // }, // "bio": null, // "updated_at": "2020-08-18T02:20:14.432078Z", // "link": null, // "default_font_color": "20222B", // "image_128": null, // "dark_theme": false, // "disable_sbwm_internally": false, // "account_id": "b1cd046b-a3bf-4ef8-81a6-0afd74ecc455", // "name": "Chilkat's Team", // "location": null, // "solo": false, // "watermark": null, // "file_count": 0, // "duration": 0, // "image_32": null, // "team_image": null, // "default_background_color": "FFFFFF", // "resource_id": "8e32b1ae-86db-4164-83b1-81b37b2e7499", // "color": null, // "frames": 0, // "storage": 0, // "collaborator_count": 1, // "creator_id": "34b4f98a-7cc9-4159-8f46-c7c3d837fc6f", // "default_session_watermark_template_id": null, // "archived_storage": 0, // "slack_webhook": null, // "upload_url": "https://frameio-uploads-production.s3-accelerate.amazonaws.com/teams/95a5fb..a86b2663", // "member_count": 1, // "_type": "team", // "asset_lifecycle_policy": null, // "member_limit": null, // "id": "95a5fbad-688d-46fc-aef1-2f011dd76c10", // "storage_limit": null, // "access": "private", // "inserted_at": "2020-08-18T02:20:13.171582Z", // "folder_count": 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 Get ComStringOf Of hoJResp "image_64" To sImage_64 Get ComIntOf Of hoJResp "project_count" To iProject_count Get ComStringOf Of hoJResp "default_color" To sDefault_color Get ComStringOf Of hoJResp "deleted_at" To sDeleted_at Get ComStringOf Of hoJResp "image_256" To sImage_256 Get ComStringOf Of hoJResp "background_color" To sBackground_color Get ComStringOf Of hoJResp "font_color" To sFont_color Get ComStringOf Of hoJResp "email_branding._type" To sEmail_branding_type Get ComStringOf Of hoJResp "email_branding.accent_color" To sEmail_brandingAccent_color Get ComStringOf Of hoJResp "email_branding.background_color" To sEmail_brandingBackground_color Get ComStringOf Of hoJResp "email_branding.default_accent_color" To sEmail_brandingDefault_accent_color Get ComStringOf Of hoJResp "email_branding.default_background_color" To sEmail_brandingDefault_background_color Get ComStringOf Of hoJResp "email_branding.id" To sEmail_brandingId Get ComStringOf Of hoJResp "email_branding.image" To sEmail_brandingImage Get ComStringOf Of hoJResp "email_branding.upload_url" To sEmail_brandingUpload_url Get ComStringOf Of hoJResp "bio" To sBio Get ComStringOf Of hoJResp "updated_at" To sUpdated_at Get ComStringOf Of hoJResp "link" To sLink Get ComStringOf Of hoJResp "default_font_color" To sDefault_font_color Get ComStringOf Of hoJResp "image_128" To sImage_128 Get ComBoolOf Of hoJResp "dark_theme" To iDark_theme Get ComBoolOf Of hoJResp "disable_sbwm_internally" To iDisable_sbwm_internally Get ComStringOf Of hoJResp "account_id" To sAccount_id Get ComStringOf Of hoJResp "name" To sName Get ComStringOf Of hoJResp "location" To sLocation Get ComBoolOf Of hoJResp "solo" To iSolo Get ComStringOf Of hoJResp "watermark" To sWatermark Get ComIntOf Of hoJResp "file_count" To iFile_count Get ComIntOf Of hoJResp "duration" To iDuration Get ComStringOf Of hoJResp "image_32" To sImage_32 Get ComStringOf Of hoJResp "team_image" To sTeam_image Get ComStringOf Of hoJResp "default_background_color" To sDefault_background_color Get ComStringOf Of hoJResp "resource_id" To sResource_id Get ComStringOf Of hoJResp "color" To sColor Get ComIntOf Of hoJResp "frames" To iFrames Get ComIntOf Of hoJResp "storage" To iStorage Get ComIntOf Of hoJResp "collaborator_count" To iCollaborator_count Get ComStringOf Of hoJResp "creator_id" To sCreator_id Get ComStringOf Of hoJResp "default_session_watermark_template_id" To sDefault_session_watermark_template_id Get ComIntOf Of hoJResp "archived_storage" To iArchived_storage Get ComStringOf Of hoJResp "slack_webhook" To sSlack_webhook Get ComStringOf Of hoJResp "upload_url" To sUpload_url Get ComIntOf Of hoJResp "member_count" To iMember_count Get ComStringOf Of hoJResp "_type" To sV_type Get ComStringOf Of hoJResp "asset_lifecycle_policy" To sAsset_lifecycle_policy Get ComStringOf Of hoJResp "member_limit" To sMember_limit Get ComStringOf Of hoJResp "id" To sId Get ComStringOf Of hoJResp "storage_limit" To sStorage_limit Get ComStringOf Of hoJResp "access" To sAccess Get ComStringOf Of hoJResp "inserted_at" To sInserted_at Get ComIntOf Of hoJResp "folder_count" To iFolder_count End_Procedure |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.