Skip to content

Instantly share code, notes, and snippets.

@kjschulz
kjschulz / TiCloudinary.js
Last active May 10, 2016 16:10 — forked from yozef/TiCloudinary
Appcelerator Titanium code for uploading a TiBlob image object, transforming, and deleting stored images via the Cloudinary API
var moment = require('alloy/moment');
// Cloudinary credentials - **Replace these with your creds!!!
var cloudName = 'Your_Cloud_Name';
var apiKey = 999999999999;
var apiSecret = 'XXXXXXXXXX-XXXXX-XX';
// Image API URL base
var apiBaseUrl = 'http://api.cloudinary.com/v1_1/';
// Create and send alert on error
function alert(message, title, ok, callback) {