This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Calendar Sync Script | |
| * Syncs events from multiple source calendars to your main pro calendar as private blockers. | |
| * | |
| * CONFIGURATION: Edit the CONFIG object below with your calendar IDs | |
| */ | |
| const CONFIG = { | |
| // Your main professional calendar (where all events will be synced TO) | |
| // Use 'primary' for your default calendar, or the calendar ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const reactNativeHttpClient = { | |
| // implment an execute function | |
| execute: async function (obj) { | |
| const httpMethod = obj.method; | |
| const requestHeaders = obj.headers; | |
| const body = obj.body; | |
| const url = obj.url; | |
| const response = await fetch(obj.url, { | |
| method: httpMethod, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import CryptoJS from 'crypto-js'; | |
| import _ from 'lodash'; | |
| // http://cloudinary.com/documentation/upload_images#creating_api_authentication_signatures | |
| const SUCCESS = 200; | |
| export class Cloudinary { | |
| constructor(apiSecret, apiKey, cloudName = 'my cloud name', createTimestamp = _.now) { | |
| this.apiSecret = apiSecret; |