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

Swift 3,4,5... 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

 

 

 

(Swift 3,4,5...) Frame.io - Get Team ID

Get your team ID.

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

Chilkat Downloads for the Swift Programming Language

MAC OS X (Cocoa) Objective-C/Swift Libs

iOS Objective-C/Swift Libs

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

    let http = CkoHttp()!
    var success: Bool

    // 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.
    http.authToken = "<FRAME_IO_DEV_TOKEN>"

    http.setUrlVar("account_id", value: "b1cd046b-a3bf-4ef8-81a6-0afd74ecc455")

    let sbResponseBody = CkoStringBuilder()!
    success = http.quickGetSb("https://api.frame.io/v2/accounts/{$account_id}/teams", sbContent: sbResponseBody)
    if success == false {
        print("\(http.lastErrorText!)")
        return
    }

    let jResp = CkoJsonObject()!
    jResp.loadSb(sbResponseBody)
    jResp.emitCompact = false

    print("Response Body:")
    print("\(jResp.emit()!)")

    var respStatusCode: Int = http.lastStatus.intValue
    print("Response Status Code = \(respStatusCode)")
    if respStatusCode >= 400 {
        print("Response Header:")
        print("\(http.lastHeader!)")
        print("Failed.")
        return
    }

    // 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

    var image_64: String? = jResp.string(of: "image_64")
    var project_count: Int = jResp.int(of: "project_count").intValue
    var default_color: String? = jResp.string(of: "default_color")
    var deleted_at: String? = jResp.string(of: "deleted_at")
    var image_256: String? = jResp.string(of: "image_256")
    var background_color: String? = jResp.string(of: "background_color")
    var font_color: String? = jResp.string(of: "font_color")
    var email_branding_type: String? = jResp.string(of: "email_branding._type")
    var email_brandingAccent_color: String? = jResp.string(of: "email_branding.accent_color")
    var email_brandingBackground_color: String? = jResp.string(of: "email_branding.background_color")
    var email_brandingDefault_accent_color: String? = jResp.string(of: "email_branding.default_accent_color")
    var email_brandingDefault_background_color: String? = jResp.string(of: "email_branding.default_background_color")
    var email_brandingId: String? = jResp.string(of: "email_branding.id")
    var email_brandingImage: String? = jResp.string(of: "email_branding.image")
    var email_brandingUpload_url: String? = jResp.string(of: "email_branding.upload_url")
    var bio: String? = jResp.string(of: "bio")
    var updated_at: String? = jResp.string(of: "updated_at")
    var link: String? = jResp.string(of: "link")
    var default_font_color: String? = jResp.string(of: "default_font_color")
    var image_128: String? = jResp.string(of: "image_128")
    var dark_theme: Bool = jResp.bool(of: "dark_theme")
    var disable_sbwm_internally: Bool = jResp.bool(of: "disable_sbwm_internally")
    var account_id: String? = jResp.string(of: "account_id")
    var name: String? = jResp.string(of: "name")
    var location: String? = jResp.string(of: "location")
    var solo: Bool = jResp.bool(of: "solo")
    var watermark: String? = jResp.string(of: "watermark")
    var file_count: Int = jResp.int(of: "file_count").intValue
    var duration: Int = jResp.int(of: "duration").intValue
    var image_32: String? = jResp.string(of: "image_32")
    var team_image: String? = jResp.string(of: "team_image")
    var default_background_color: String? = jResp.string(of: "default_background_color")
    var resource_id: String? = jResp.string(of: "resource_id")
    var color: String? = jResp.string(of: "color")
    var frames: Int = jResp.int(of: "frames").intValue
    var storage: Int = jResp.int(of: "storage").intValue
    var collaborator_count: Int = jResp.int(of: "collaborator_count").intValue
    var creator_id: String? = jResp.string(of: "creator_id")
    var default_session_watermark_template_id: String? = jResp.string(of: "default_session_watermark_template_id")
    var archived_storage: Int = jResp.int(of: "archived_storage").intValue
    var slack_webhook: String? = jResp.string(of: "slack_webhook")
    var upload_url: String? = jResp.string(of: "upload_url")
    var member_count: Int = jResp.int(of: "member_count").intValue
    var v_type: String? = jResp.string(of: "_type")
    var asset_lifecycle_policy: String? = jResp.string(of: "asset_lifecycle_policy")
    var member_limit: String? = jResp.string(of: "member_limit")
    var id: String? = jResp.string(of: "id")
    var storage_limit: String? = jResp.string(of: "storage_limit")
    var access: String? = jResp.string(of: "access")
    var inserted_at: String? = jResp.string(of: "inserted_at")
    var folder_count: Int = jResp.int(of: "folder_count").intValue

}

 

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