1.0.0 • Published 4 years ago

newsletter2-go-api v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 years ago

newsletter2-go-api-(https://api/newsletter2go/com)

Newsletter2GoApi(https:ApiNewsletter2goCom) - JavaScript client for newsletter2-go-api-(https://api/newsletter2go/com)

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build date: 2016-06-08T06:59:42.502Z
  • Build package: class 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 newsletter2-go-api-(https://api/newsletter2go/com) --save

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/newsletter2-go-api-(https://api/newsletter2go/com) then install it via:

    npm install YOUR_USERNAME/newsletter2-go-api-(https://api/newsletter2go/com) --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.

Getting Started

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

var Newsletter2GoApi(https:ApiNewsletter2goCom) = require('newsletter2-go-api-(https://api/newsletter2go/com)');

var defaultClient = Newsletter2GoApi(https:ApiNewsletter2goCom).ApiClient.default;

// Configure OAuth2 access token for authorization: OAuth
var OAuth = defaultClient.authentications['OAuth'];
OAuth.accessToken = "YOUR ACCESS TOKEN"

var api = new Newsletter2GoApi(https:ApiNewsletter2goCom).AttributeApi()

var attribute = new Newsletter2GoApi(https:ApiNewsletter2goCom).AttributePost(); // {AttributePost} the data to save


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

Documentation for API Endpoints

All URIs are relative to https://api.newsletter2go.com

ClassMethodHTTP requestDescription
Newsletter2GoApi(https:ApiNewsletter2goCom).AttributeApicreateAttributePOST /attributescreates a new attribute
Newsletter2GoApi(https:ApiNewsletter2goCom).AttributeApideleteAttributeDELETE /lists/{lid}/attributes/{id}delete the attribute
Newsletter2GoApi(https:ApiNewsletter2goCom).AttributeApigetAttributesGET /lists/{lid}/attributesget all Attributes of selected list
Newsletter2GoApi(https:ApiNewsletter2goCom).AttributeApiupdateAttributePATCH /attributes/{id}update the attribute
Newsletter2GoApi(https:ApiNewsletter2goCom).AuthorizationApigetTokenPOST /oauth/v2/tokenEndpoint for retrieving a token
Newsletter2GoApi(https:ApiNewsletter2goCom).CompanyApigetCompanyGET /companiesget the details of a company
Newsletter2GoApi(https:ApiNewsletter2goCom).CompanyApiupdateCompanyPATCH /companies/{id}update the Company
Newsletter2GoApi(https:ApiNewsletter2goCom).GroupApiaddRecipientToGroupPOST /lists/{lid}/groups/{gid}/recipients/{id}add single recipient to group
Newsletter2GoApi(https:ApiNewsletter2goCom).GroupApiaddRecipientsToGroupPOST /lists/{lid}/groups/{gid}/recipientsadd all Recipients to the given group
Newsletter2GoApi(https:ApiNewsletter2goCom).GroupApicreateGroupPOST /groupscreates a new group
Newsletter2GoApi(https:ApiNewsletter2goCom).GroupApideleteGroupDELETE /groups/{id}delete the Group
Newsletter2GoApi(https:ApiNewsletter2goCom).GroupApigetGroupsGET /lists/{lid}/groupsget all Group of selected list
Newsletter2GoApi(https:ApiNewsletter2goCom).GroupApigetRecipientsByGroupGET /lists/{lid}/groups/{gid}/recipientsget all Recipients of selected group
Newsletter2GoApi(https:ApiNewsletter2goCom).GroupApiremoveRecipientFromGroupDELETE /lists/{lid}/groups/{gid}/recipients/{id}remove single recipient from group
Newsletter2GoApi(https:ApiNewsletter2goCom).GroupApiremoveRecipientsFromGroupDELETE /lists/{lid}/groups/{gid}/recipientsremove all Recipients from given group
Newsletter2GoApi(https:ApiNewsletter2goCom).GroupApiupdateGroupPATCH /groups/{id}update the Group
Newsletter2GoApi(https:ApiNewsletter2goCom).ListApicreateListPOST /listscreates a new list
Newsletter2GoApi(https:ApiNewsletter2goCom).ListApideleteListDELETE /lists/{id}delete the List
Newsletter2GoApi(https:ApiNewsletter2goCom).ListApigetListsGET /listsget all lists
Newsletter2GoApi(https:ApiNewsletter2goCom).ListApigetRecipientsGET /lists/{lid}/recipientsget all Recipients of selected list
Newsletter2GoApi(https:ApiNewsletter2goCom).ListApiremoveRecipientsFromListDELETE /lists/{lid}/recipientsremove all Recipients from selected list
Newsletter2GoApi(https:ApiNewsletter2goCom).ListApiupdateListPATCH /lists/{id}update the List
Newsletter2GoApi(https:ApiNewsletter2goCom).ListApiupdateRecipientsPATCH /lists/{lid}/recipientsupdate all Recipients in selected list
Newsletter2GoApi(https:ApiNewsletter2goCom).NewsletterApicreateNewsletterPOST /lists/{lid}/newsletterscreates a new newsletter
Newsletter2GoApi(https:ApiNewsletter2goCom).NewsletterApigetNewsletterGET /newsletters/{id}get one newsletter
Newsletter2GoApi(https:ApiNewsletter2goCom).NewsletterApigetNewslettersGET /lists/{lid}/newslettersget all newsletters of the given list
Newsletter2GoApi(https:ApiNewsletter2goCom).NewsletterApigetReportsGET /lists/{lid}/newsletters/{nid}/aggregationsget reports for the newsletter aggregated by days
Newsletter2GoApi(https:ApiNewsletter2goCom).NewsletterApisendNewsletterPOST /newsletters/{id}/sendSends the newsletter to a list or group
Newsletter2GoApi(https:ApiNewsletter2goCom).NewsletterApiupdateNewsletterPATCH /newsletters/{id}update the Newsletter
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApiaddRecipientToGroupPOST /lists/{lid}/groups/{gid}/recipients/{id}add single recipient to group
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApiaddRecipientsToGroupPOST /lists/{lid}/groups/{gid}/recipientsadd all Recipients to the given group
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApicreateRecipientPOST /recipientscreate new recipient(s) or updates existing ones
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApideleteRecipientDELETE /lists/{lid}/recipients/{id}delete the recipient
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApigetRecipientsGET /lists/{lid}/recipientsget all Recipients of selected list
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApigetRecipientsByGroupGET /lists/{lid}/groups/{gid}/recipientsget all Recipients of selected group
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApiimportRecipientsInitPOST /lists/{lid}/recipients/import/initInitialize the import of recipients by file
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApiimportRecipientsSavePOST /lists/{lid}/recipients/import/saveStart the import recipients by file
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApiimportRecipientsStatisticsGET /import/{id}/infoGet statistics about the import by file
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApiremoveRecipientFromGroupDELETE /lists/{lid}/groups/{gid}/recipients/{id}remove single recipient from group
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApiremoveRecipientsFromGroupDELETE /lists/{lid}/groups/{gid}/recipientsremove all Recipients from given group
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApiremoveRecipientsFromListDELETE /lists/{lid}/recipientsremove all Recipients from selected list
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApisubscribeRecipientPOST /forms/submit/{code}Creates a new recipient and sends a DOI-Mail
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApiupdateRecipientPATCH /lists/{lid}/recipients/{id}update the recipient.
Newsletter2GoApi(https:ApiNewsletter2goCom).RecipientApiupdateRecipientsPATCH /lists/{lid}/recipientsupdate all Recipients in selected list
Newsletter2GoApi(https:ApiNewsletter2goCom).ReportApigetReportsGET /lists/{lid}/newsletters/{nid}/aggregationsget reports for the newsletter aggregated by days
Newsletter2GoApi(https:ApiNewsletter2goCom).UserApigetUsersGET /usersget all users of the company where the current user has access to
Newsletter2GoApi(https:ApiNewsletter2goCom).UserApiupdateUserPATCH /users/{id}update the user

Documentation for Models

Documentation for Authorization

OAuth

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: /oauth/v2/token
  • Scopes: N/A

Basic

  • Type: HTTP basic authentication
1.0.0

4 years ago