Global API

Available Since: Copado Version 10
Requirements: Global API Class Access (included on Copado User Permission Set)

Copado Global API allows you to invoke methods to conveniently automate some time consuming tasks.
From salesforce you may review Global API methods and their Signature. In order to do so, Follow this steps:
  1. Open Salesforce Setup.
  2. Navigate to Apex Classes.
  3. Open Global API ape class.
  4. Review Methods and Signature from Class Summary Tab.
Supported Methods:
  • Get Copado Licenses Information:
    • Will provide total, available, and used information for your Copado Licenses.
    • Signature: copado.GlobalAPI.CopadoLicenses getLicenseInformation()
  • Upsert License:
    • Insert or Update Copado License.
    • Signature: String upsertCopadoLicense(copado__Copado_License__c license)
  • Delete Copado License
    • Remove Copado License
    • Signature: String deleteCopadoLicense(Id licenseId)
  • List Copado License
    • Review Licenses Assignments per user.
    • Signature: List listCopadoLicenses()

Sample Apex Anonymous Global API Call:
Copado.GlobalAPI copadoGlobalAPI = new Copado.GlobalAPI(); System.debug(copadoGlobalAPI.getLicenseInformation());