Git Product home page Git Product logo

nutshell-api-php's Introduction

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.

Composer

Thanks to the community for nudging us to make this code compatible with Composer. While it's not meant to be a fully-supported SDK, you can use composer to quickly add this project to your own.

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 and Android applications are built using this API.

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.

nutshell-api-php's People

Contributors

andrewsardone avatar andyfowler avatar camfindlay avatar flav avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.