Skip to content

Doap/nutshell-api-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is some sample code which will help you get started using Nutshell's API in your PHP application. This repository contains:

  • a lightweight JSON-RPC + CURL wrapper to ease making API calls and manage authentication and endpoint discovery
  • several examples which use that class to perform certain tasks in Nutshell

Running the Examples

Once you've cloned the repository, and assuming PHP is in your path:

  1. set your Nutshell username and API key at the top of each PHP file in the examples directory
  2. run php examples/create.php (or edit.php or retrieve.php)

Using the API

The NutshellApi class (in NutshellApi.php) provides a lightweight JSON-RPC + CURL wrapper for the API which you can use for development. The class handles authentication and endpoint discovery. It should be instantiated once with a username and API key and, once instantiated, it should be reused for subsequent API calls.

See the API method list for a list of valid API methods.

Read the comments in NutshellApi.php for additional information about the class, and open the example files to see how the NutshellApi class is used.

The NutshellApi class provides synchronous (blocking) API calls. It is possible to write an API class which provides asynchronous calls using the id field specified in JSON-RPC.

Additional Reading

About Nutshell

Nutshell is building modern CRM software around the needs of medium-sized companies. We’re working hard to deliver the future of business software: enterprise-level features with the ease-of-use found in popular web applications.

At Nutshell, mobile is in our DNA. We believe in designing software to be cross-platform from day one, with robust APIs and native user interfaces. Our iPhone application - built using this API - is in the App Store, and an Android application is planned.

The data you store in Nutshell belongs to you, and we've designed our open API to make it possible for you to work with it however you wish. Please contact us with any questions on using the API.

About

A lightweight JSON-RPC + CURL wrapper to access Nutshell CRM's API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published