Computer Code

SwiftCloud’s / SwiftCRM’s Calendar is API driven for both internal and external use.

HEADS UP! You’ve stumbled into a very technical post. Most users will never need this. If any of the below seems scary and unfamiliar to you, contact us with your goals and we can help. Below is intended for programmers.

NOTE: The token and access key is generated on your user profile >> Accessing SwiftCloud page.

Please follow the below commands to generate API credentials and access tokens.

Parameters in json format:

{
    "grant_type": "client_credentials",
    "client_id": "1_67g9jmsbpdogskkwc0wgcc8k8g004s88o8w440wk8ogswcwo00",
    "client_secret": "14a5rpo7o2rk0oo0skk88coowckw4wwcc004ss88w008ogwsww"
}

Calendar List API:

  • Method: GET
  • URL: https://swiftcloud.ai/is/app_dev.php/api/calendarlist?user=233
  • Headers: Authorization: Bearer {access_token}

Calendar Create API:

  • Method: POST
  • URL: https://swiftcloud.local/is/app_dev.php/api/calendarcreates
  • Headers: Authorization: Bearer {access_token}

Parameters in json format:

{
    "user": 233,
    "eventTitle": "Meeting",
    "start_time": "09/17/2020|9 : 46 PM"
}

Calendar Edit API:

  • Method: POST
  • URL: https://swiftcloud.ai/is/app_dev.php/api/calendarcreates
  • Headers: Authorization: Bearer {access_token}

Parameters in json format:

{
    "user": 233,
    "eventTitle": "Meeting changed",
    "start_time": "09/17/2020|10 : 46 PM",
    "id": 5
}

Calendar Delete API:

  • Method: POST
  • Headers: Authorization: Bearer {access_token}
  • URL: https://swiftcloud.local/is/app_dev.php/api/calendardeletes
{
    "user": 233,
    "id": 1
}

Questions? Let us know and we’ll update this document.

Was this article helpful?YesNo
Ah, sorry to hear this. We'll look into updating this item.
What could we do to improve this?