Tag Archives: rest

Python and the Force.com REST API: Simple simple-salesforce example

Force.com REST APIs

While losing code is a bummer, I always say that when life throws you lost code you hand life back new refactored code. Many moons ago I posted about an Insanely Simple Python Script that used the Salesforce REST API’s. It was later updated and eventually evolved into a longer script that I used for demonstrations. Unfortunately I recently lost the code to said longer script, but I still wanted a similar demo. And so I recently discovered simple-salesforce, a Python REST API client for Salesforce which uses more moderns libs like requests to get a similar job done. Continue reading

Using the Salesforce Analytics API on a Visualforce Page

The new Analytics REST API, delivered in Winter ’14, gives developers programmatic access to report data defined in the Salesforce report builder. Discover how you can call the Analytics API from JavaScript. Continue reading

HTML5, AngularJS, Backbone Mobile Service Packs

Mobile Packs Accelerate Developement

With the announcement of Salesforce Platform Mobile Services comes a new set of developer tools called Mobile Packs. Mobile Packs built on popular Javascript libraries like AngularJS, Backbone,js and jQuery Mobile to make developing robust business apps for mobile devices using HTML5 while providing idiomatic access to the Salesforce Platform. Continue reading

Using PHP for Canvas Applications

Canvas is a great and simple method of including your third party integrations within the Salesforce UI, and PHP is still one of the most commonly used web application languages on the planet – so how do you use these two great technologies together? Using Canvas with the language of your choice is very similar to integrating with our API’s – the first real obstacle is authenticating the user. After that you can access our API’s, and Canvas gives a speedy path to doing that with just JavaScript. Continue reading

Testing HTTP Callouts with Static Data in Winter ’13

One of the most eagerly awaited Winter ’13 features, at least for developers, has been the ability to test Apex callouts. In this blog entry, I look at how you can mock up callout responses using data in static resources. Continue reading

NOT Calling the REST API from JavaScript in Visualforce Pages!

The RemoteTK Visualforce Custom Component (comprising RemoteTK.component and RemoteTKController.cls) provides an abstraction very similar to the Force.com REST API, implemented via @RemoteAction methods in the component’s controller. RemoteTK offers similar functionality to forcetk.js, without consuming API calls. Continue reading

Developer Content Contest #5 — Apex REST

Apex REST, recently enhanced in Spring ’12, makes it easy for you to create custom RESTful Web services using Apex. In this challenge, we’d like you to show off some of the cool custom APIs that you’ve developed with Apex REST and teach the community how to harness the full power of Apex REST. Head on over to the Apex REST Content Challenge page for full details… Continue reading

Insanely Simple Python REST Script

One of the main reasons to adopt REST is the simplicity of the API, compared to the juggling of formats required to send and receive SOAP messages.  We’ve had a long history of creating toolkits and libraries to ease the burden of using SOAP as a transport – so much so that when I first started looking at Python again as a language (not an accident that it was around the same time Heroku added it to their polyglot platform) … I really wanted to take a step back and see how simple I could make a script functional with… Continue reading

Chatter REST API Enhancements

rhatter

The Chatter REST API is GA in Winter ’12. Here is a highlight of some of the recent changes and additions. Continue reading

New Force.com and Database.com Ruby gem now available

Ruby

We are excited to announce the availability of the new Force.com and Database.com Ruby gem, with full source available in Github.

This gem is a great example of how an open source project started way back in 2005, has evolved over time thanks to the active Ruby and Force.com community. The gem, written to leverage the Force.com and Database.com REST APIs, has been designed to be independent of web frameworks (Rails, Sinatra etc.) to allow developer freedom when designing Ruby-based apps. What’s more, with full support for the Chatter REST API (Note: The Chatter REST API is still in developer preview… Continue reading