Skip to content

Simple CLI scripts for interacting with the Force.com Rest API

Notifications You must be signed in to change notification settings

couchand/force-rest-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

force-rest-cli

Simple scripts to interact with the Force.com REST API from the command line.

  • getting started
  • reference
  • more information

getting started

You must update the login script with your OAuth credentials and the appropriate URLs. Then after running it you will be able to make requests.

reference

  • login.sh

    ./login.sh USERNAME PASSWORD

Perform username-password OAuth authentication and set an environment variable with the Force.com session id.

You must log in before making any other requests.

  • get.sh

    ./get.sh path/to/resource

Makes an HTTP get request for the given API resource.

Returns the JSON returned by the request.

  • post.sh

    ./post.sh path/to/resource data_to_post.json HTTP_METHOD

Make an HTTP post, patch or delete to the given API resource. Pass the specified data as the body of the request.

Returns the JSON returned by the request.

more information

http://www.salesforce.com/us/developer/docs/api_rest/index.htm

About

Simple CLI scripts for interacting with the Force.com Rest API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages