npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

infusionsoft-sdk

v0.0.3

Published

A NodeJS SDK automatically generated from Infusionsoft API Swagger definitions.

Downloads

438

Readme

infusionsoft_rest_api

InfusionsoftRestApi - JavaScript client for infusionsoft_rest_api No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

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 infusionsoft_rest_api --save

git

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

    npm install YOUR_USERNAME/infusionsoft_rest_api --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):

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 InfusionsoftRestApi = require('infusionsoft_rest_api');

var api = new InfusionsoftRestApi.AppointmentApi()

var opts = { 
  'since': "since_example", // {String} Date to start searching from ex. `2017-01-01T22:17:59.039Z`
  'until': "until_example", // {String} Date to search to ex. `2017-01-01T22:17:59.039Z`
  'limit': 56, // {Number} Sets a total of items to return
  'offset': 56 // {Number} Sets a beginning range of items to return
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.appointmentsUsingGET(opts, callback);

Documentation for API Endpoints

All URIs are relative to https://api.infusionsoft.com/crm/rest/v1

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- InfusionsoftRestApi.AppointmentApi | appointmentsUsingGET | GET /appointments | List Appointments InfusionsoftRestApi.AppointmentApi | createAppointmentUsingPOST | POST /appointments | Create an Appointment InfusionsoftRestApi.AppointmentApi | loadAppointmentUsingGET | GET /appointments/{appointmentId} | Retrieve an Appointment InfusionsoftRestApi.AppointmentApi | removeAppointmentUsingDELETE | DELETE /appointments/{appointmentId} | Delete an Appointment InfusionsoftRestApi.AppointmentApi | replaceAppointmentUsingPUT | PUT /appointments/{appointmentId} | Replace an Appointment InfusionsoftRestApi.AppointmentApi | searchUsingGET | GET /appointments/search | Search Appointments InfusionsoftRestApi.AppointmentApi | syncUsingGET | GET /appointments/sync | Retrieve Synced Appointments InfusionsoftRestApi.AppointmentApi | updateAppointmentUsingPATCH | PATCH /appointments/{appointmentId} | Update an Appointment InfusionsoftRestApi.CampaignApi | addContactsToCampaignSequenceUsingPOST | POST /campaigns/{campaignId}/sequences/{sequenceId}/contacts/{contactId} | Add to Campaign Sequence InfusionsoftRestApi.CampaignApi | addContactsToCampaignSequenceUsingPOST1 | POST /campaigns/{campaignId}/sequences/{sequenceId}/contacts | Add Multiple to Campaign Sequence InfusionsoftRestApi.CampaignApi | getAllCampaignsUsingGET | GET /campaigns | List Campaigns InfusionsoftRestApi.CampaignApi | getCampaignUsingGET | GET /campaigns/{campaignId} | Retrieve a Campaign InfusionsoftRestApi.CampaignApi | removeContactsFromCampaignSequenceUsingDELETE | DELETE /campaigns/{campaignId}/sequences/{sequenceId}/contacts/{contactId} | Remove from Campaign Sequence InfusionsoftRestApi.CampaignApi | removeContactsFromCampaignSequenceUsingDELETE1 | DELETE /campaigns/{campaignId}/sequences/{sequenceId}/contacts | Remove Multiple from Campaign Sequence InfusionsoftRestApi.ContactApi | applyTagsToContactIdUsingPOST | POST /contacts/{contactId}/tags | Apply Tags InfusionsoftRestApi.ContactApi | createContactUsingPOST | POST /contacts | Create a Contact InfusionsoftRestApi.ContactApi | createOrUpdateContactUsingPUT | PUT /contacts | Create or Update a Contact InfusionsoftRestApi.ContactApi | deleteContactUsingDELETE | DELETE /contacts/{contactId} | Delete a Contact InfusionsoftRestApi.ContactApi | listAppliedTagsUsingGET | GET /contacts/{contactId}/tags | List Applied Tags InfusionsoftRestApi.ContactApi | listContactsUsingGET | GET /contacts | List Contacts InfusionsoftRestApi.ContactApi | listCustomFieldsUsingGET | GET /contactCustomFields | List Contact Custom Fields InfusionsoftRestApi.ContactApi | loadUsingGET | GET /contacts/{id} | Retrieve a Contact InfusionsoftRestApi.ContactApi | removeTagsFromContactUsingDELETE | DELETE /contacts/{contactId}/tags/{tagId} | Remove Applied Tag InfusionsoftRestApi.ContactApi | removeTagsFromContactUsingDELETE1 | DELETE /contacts/{contactId}/tags | Remove Applied Tags InfusionsoftRestApi.ContactApi | updateContactUsingPATCH | PATCH /contacts/{contactId} | Update a Contact InfusionsoftRestApi.ECommerceApi | loadOrderUsingGET | GET /orders/{orderId} | Retrieve an Order InfusionsoftRestApi.ECommerceApi | searchUsingGET1 | GET /orders | List Orders InfusionsoftRestApi.ECommerceApi | searchUsingGET2 | GET /transactions | List Transactions InfusionsoftRestApi.ECommerceApi | transactionByIdUsingGET | GET /transactions/{transactionId} | Retrieve a Transaction InfusionsoftRestApi.ECommerceApi | transactionsForOrderUsingGET | GET /orders/{orderId}/transactions | Retrieve Order Transactions InfusionsoftRestApi.OpportunityApi | createOpportunityUsingPOST | POST /opportunities | Create an Opportunity InfusionsoftRestApi.OpportunityApi | getOpportunityUsingGET | GET /opportunities/{opportunityId} | Retrieve an Opportunity InfusionsoftRestApi.OpportunityApi | getStagePipelineUsingGET | GET /opportunity/stage_pipeline | List Opportunity Stage Pipeline InfusionsoftRestApi.OpportunityApi | listOpportunitiesUsingGET | GET /opportunities | List Opportunities InfusionsoftRestApi.OpportunityApi | replaceOpportunityUsingPUT | PUT /opportunities | Replace an Opportunity InfusionsoftRestApi.OpportunityApi | updateOpportunityUsingPATCH | PATCH /opportunities/{opportunityId} | Update an Opportunity InfusionsoftRestApi.ProductApi | loadProductUsingGET | GET /products/{productId} | Retrieve a Product InfusionsoftRestApi.ProductApi | searchUsingGET3 | GET /products/search | List Products InfusionsoftRestApi.ProductApi | syncUsingGET1 | GET /products/sync | Retrieve Synced Products InfusionsoftRestApi.RESTHooksApi | createAHookSubscription | POST /hooks | Create a Hook Subscription InfusionsoftRestApi.RESTHooksApi | deleteAHookSubscription | DELETE /hooks/{key} | Delete a Hook Subscription InfusionsoftRestApi.RESTHooksApi | listHookEventTypes | GET /hooks/event_keys | List Hook Event Types InfusionsoftRestApi.RESTHooksApi | listStoredHookSubscriptions | GET /hooks | List Stored Hook Subscriptions InfusionsoftRestApi.RESTHooksApi | retrieveAHookSubscription | GET /hooks/{key} | Retrieve a Hook Subscription InfusionsoftRestApi.RESTHooksApi | updateAHookSubscription | PUT /hooks/{key} | Update a Hook Subscription InfusionsoftRestApi.RESTHooksApi | verifyAHookSubscription | POST /hooks/{key}/verify | Verify a Hook Subscription InfusionsoftRestApi.TaskApi | createTaskUsingPOST | POST /tasks | Create a Task InfusionsoftRestApi.TaskApi | loadTaskUsingGET | GET /tasks/{taskId} | Retrieve a Task InfusionsoftRestApi.TaskApi | removeTaskUsingDELETE | DELETE /tasks/{taskId} | Delete a Task InfusionsoftRestApi.TaskApi | replaceTaskUsingPUT | PUT /tasks/{taskId} | Replace a Task InfusionsoftRestApi.TaskApi | searchUsingGET4 | GET /tasks/search | Search Tasks InfusionsoftRestApi.TaskApi | syncUsingGET2 | GET /tasks/sync | Retrieve Synced Tasks InfusionsoftRestApi.TaskApi | tasksUsingGET | GET /tasks | List Tasks InfusionsoftRestApi.TaskApi | updateTaskUsingPATCH | PATCH /tasks/{taskId} | Update a Task

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.