1.0.16 • Published 6 years ago

saasgrids v1.0.16

Weekly downloads
3
License
Unlicense
Repository
-
Last release
6 years ago

saasgrids

crms - JavaScript client for saasgrids Saasgrids CRM grid This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install saasgrids --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your saasgrids from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('saasgrids') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var crms = require('saasgrids');

var defaultClient = crms.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'

var api = new crms.AccountsApi()

var userId = "userId_example"; // {String} User instance id returned from saasgrids after authorization

var body = new crms.Account(); // {Account} Account object that needs to be created

api.createAccount(userId, body).then(function() {
  console.log('API called successfully.');
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://api.saasgrids.com/apis/crms/

ClassMethodHTTP requestDescription
crms.AccountsApicreateAccountPOST /{userId}/accountsCreates a new account
crms.AccountsApideleteAccountByIdDELETE /{userId}/account/{accountId}Delete account by Id
crms.AccountsApigetAccountByIdGET /{userId}/account/{accountId}Get account by Id
crms.AccountsApigetAccountFiltersGET /{userId}/accounts/filtersGet all account filters
crms.AccountsApigetAccountsByFilterGET /{userId}/accounts/filters/{filterId}Get all accounts by filter
crms.AccountsApigetAllAccountsGET /{userId}/accountsGet all accounts
crms.AccountsApiupdateAccountByIdPUT /{userId}/account/{accountId}Update account by Id
crms.AppointmentsApicreateAppointmentPOST /{userId}/appointmentsCreates a new appointment
crms.AppointmentsApideleteAppointmentsByIdDELETE /{userId}/appointments/{appointmentId}Delete appointments by Id
crms.AppointmentsApigetAllAppointmentsGET /{userId}/appointmentsGet all appointments
crms.AppointmentsApigetAppointmentByIdGET /{userId}/appointments/{appointmentId}Get appointment by Id
crms.AppointmentsApiupdateAppointmentByIdPUT /{userId}/appointments/{appointmentId}Update appointment by Id
crms.CallsApicreateCallPOST /{userId}/callsCreates a new call
crms.CallsApideleteCallByIdDELETE /{userId}/calls/{callId}Delete call by Id
crms.CallsApigetAllCallsGET /{userId}/callsGet all calls
crms.CallsApigetCallByIdGET /{userId}/calls/{callId}Get call by Id
crms.CallsApiupdateCallByIdPUT /{userId}/calls/{callId}Update call by Id
crms.ContactsApicreateContactPOST /{userId}/contactsCreates a new contact
crms.ContactsApideleteContactByIdDELETE /{userId}/contacts/{contactId}Delete contact by Id
crms.ContactsApigetContactByFilterGET /{userId}/contacts/filters/{filterId}Get all contacts by filter
crms.ContactsApigetContactByIdGET /{userId}/contacts/{contactId}Get contact by Id
crms.ContactsApigetContactFiltersGET /{userId}/contacts/filtersGet all contact filters
crms.ContactsApigetContactPropertiesGET /{userId}/contacts/propertiesGet all contact properties
crms.ContactsApigetContactsGET /{userId}/contactsGet contacts
crms.ContactsApigetContactsByEmailGET /{userId}/contacts/email/{email}Get all contacts by email
crms.ContactsApiupdateContactByIdPUT /{userId}/contacts/{contactId}Update contact by Id
crms.DealsApicreateDealsPOST /{userId}/dealsCreates a new deals
crms.DealsApideleteDealByIdDELETE /{userId}/deal/{dealId}Delete deal by Id
crms.DealsApigetAllDealGET /{userId}/dealsGet all deal
crms.DealsApigetDealByIdGET /{userId}/deal/{dealId}Get deal by Id
crms.DealsApiupdateDealByIdPUT /{userId}/deal/{dealId}Update deal by Id
crms.EmailsApicreateEmailPOST /{userId}/emailsCreates a new email
crms.EmailsApideleteEmailByIdDELETE /{userId}/emails/{emailObjectId}Delete email by Id
crms.EmailsApigetAllEmailsGET /{userId}/emailsGet all emails
crms.EmailsApigetEmailByIdGET /{userId}/emails/{emailObjectId}Get email by Id
crms.EmailsApiupdateEmailByIdPUT /{userId}/emails/{emailObjectId}Update email by Id
crms.LeadsApicreateLeadPOST /{userId}/leadsCreates a new lead
crms.LeadsApideleteLeadByIdDELETE /{userId}/leads/{leadId}Delete lead by Id
crms.LeadsApigetAllLeadsGET /{userId}/leadsGet all leads
crms.LeadsApigetLeadByIdGET /{userId}/leads/{leadId}Get lead by Id
crms.LeadsApigetLeadFiltersGET /{userId}/leads/filtersGet all lead filters
crms.LeadsApigetLeadsByFilterGET /{userId}/leads/filters/{filterId}Get all leads by filter
crms.LeadsApiupdateLeadByIdPUT /{userId}/leads/{leadId}Update lead by Id
crms.NotesApicreateNotePOST /{userId}/notesCreates a new note
crms.NotesApideleteNoteByIdDELETE /{userId}/note/{noteId}Delete note by Id
crms.NotesApigetAllNotesGET /{userId}/notesGet all notes
crms.NotesApigetNoteByIdGET /{userId}/note/{noteId}Get note by Id
crms.NotesApiupdateNoteByIdPUT /{userId}/note/{noteId}Update note by Id
crms.TasksApicreateTaskPOST /{userId}/tasksCreates a new task
crms.TasksApideleteTaskByIdDELETE /{userId}/tasks/{taskId}Delete task by Id
crms.TasksApigetAllTasksGET /{userId}/tasksGet all tasks
crms.TasksApigetTaskByIdGET /{userId}/tasks/{taskId}Get task by Id
crms.TasksApiupdateTaskByIdPUT /{userId}/tasks/{taskId}Update task by Id
crms.UsersApigetUsersGET /{userId}/users/{email}Get all users

Documentation for Models

Documentation for Authorization

basicAuth

  • Type: HTTP basic authentication
1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago