1.0.1 • Published 1 year ago

@yonah-mozaic/jammber_mozaic_api v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

jammber_mozaic_api

JammberMozaicApi - JavaScript client for jammber_mozaic_api An API for Mozaic. Powered by Jammber. This SDK is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Package version: v1
  • Build package: io.swagger.codegen.v3.generators.javascript.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 jammber_mozaic_api --save

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):

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 JammberMozaicApi = require('jammber_mozaic_api');
var defaultClient = JammberMozaicApi.ApiClient.instance;


var api = new JammberMozaicApi.ActivityApi()
var opts = { 
  'key': "key_example", // {String} The id of the object this activity is associated with
  'type': new JammberMozaicApi.ActivityType(), // {ActivityType} The type of activity being requested    contactCreated    invited    onboarded    readyForPayouts
  'limit': 56, // {Number} A limit of the number of objects to be returned, between 1 and 100.  The default is 10
  'forwardFrom': "forwardFrom_example", // {String} Used for paging results, <span class=\"jmbr term\">forward_from</span> lets you specify  the id of the previous object the next page should start after
  'backFrom': "backFrom_example", // {String} Used for paging results, <span class=\"jmbr term\">back_from</span> lets you specify  the id of the object to page back from
  'userId': "userId_example", // {String} The user id to operate on their behalf (tenants only)
  '_object': "_object_example" // {String} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getActivity(opts, callback);

Documentation for API Endpoints

All URIs are relative to https://mozaic-api-dev.azurewebsites.net/

ClassMethodHTTP requestDescription
JammberMozaicApi.ActivityApigetActivityGET /api/activityRetrieves the Activity with the specified key and activity type
JammberMozaicApi.ActivityApiupdateActivityPUT /api/activityCreate or update an Activity
JammberMozaicApi.AnalyticsApiapiAnalyticsGetGET /api/analyticsRetrieve a list of Payments summed by date
JammberMozaicApi.AppsApiapiAppsDeleteDELETE /api/appsDelete an application
JammberMozaicApi.AppsApiapiAppsGetGET /api/appsRetrieve the info for applications you've created
JammberMozaicApi.AppsApiapiAppsIdPutPUT /api/apps/{id}Create an application that can call the Mozaic API.
JammberMozaicApi.AppsApiapiAppsPostPOST /api/appsCreate an application that can call the Mozaic API.
JammberMozaicApi.ContactsApicontactsBulkPOSTPOST /api/contacts/bulkBulk add contacts
JammberMozaicApi.ContactsApicontactsDeleteAvatarDELETE /api/contacts/{id}/imageReset avatar to the default
JammberMozaicApi.ContactsApicontactsGETByIdGET /api/contacts/{id}Get a single contact
JammberMozaicApi.ContactsApicontactsGETListGET /api/contactsList contacts
JammberMozaicApi.ContactsApicontactsGetAvatarByIdGET /api/contacts/{id}/imageRetrieve an avatar by id
JammberMozaicApi.ContactsApicontactsPOSTPOST /api/contactsCreate a contact record
JammberMozaicApi.ContactsApicontactsSearchGET /api/contacts/searchSearch contacts
JammberMozaicApi.ContactsApicontactsUpdateAvatarPUT /api/contacts/{id}/imageUpload avatar image via file
JammberMozaicApi.ContactsApicontactsUpdateAvatarByDeetsPUT /api/contacts/{id}/image/base64Upload avatar via JSON body
JammberMozaicApi.ContactsApirequestsGETListGET /api/contacts/requestList requests
JammberMozaicApi.ContractsApiapiContractsDeleteDELETE /api/contractsDelete a contract
JammberMozaicApi.ContractsApiapiContractsGetGET /api/contractsList all contracts
JammberMozaicApi.ContractsApiapiContractsIdGetGET /api/contracts/{id}Retrieve a contract
JammberMozaicApi.ContractsApiapiContractsPostPOST /api/contractsCreate a contract
JammberMozaicApi.ContractsApiapiContractsPutPUT /api/contractsUpdate a contract
JammberMozaicApi.DiagnosticsApiapiPingGetGET /api/PingSimple ping test call
JammberMozaicApi.EndUsersApiapiEndUsersBulkFilePostPOST /api/end-users/bulk/file
JammberMozaicApi.EndUsersApiapiEndUsersInvitePostPOST /api/end-users/invite
JammberMozaicApi.EndUsersApiapiEndUsersPostPOST /api/end-usersCreate an end user for a tenant
JammberMozaicApi.IncomesApiapiIncomesApiContractsIdIncomesIncomeIdGetGET /api/incomes/api/contracts/{id}/incomes/{incomeId}Create a contract
JammberMozaicApi.IncomesApiapiIncomesApiContractsIdIncomesPostPOST /api/incomes/api/contracts/{id}/incomesCreate a contract
JammberMozaicApi.InviteTokensApiapiInviteTokenDecryptGetGET /api/invite-token/decryptDecrypt an invite token and return information for display
JammberMozaicApi.InviteTokensApiapiInviteTokenSendPostPOST /api/invite-token/sendSend an invite token
JammberMozaicApi.InvoicesApiapiInvoicesGetGET /api/invoicesRetrieve a list of Invoices
JammberMozaicApi.InvoicesApiapiInvoicesIdGetGET /api/invoices/{id}Find a Invoice by ID
JammberMozaicApi.InvoicesApiapiInvoicesPostPOST /api/invoicesCreate a Invoice
JammberMozaicApi.NotificationsApiapiNotificationsBulkPutPUT /api/notifications/bulkUpdate one or many Notifications (mark as read)
JammberMozaicApi.NotificationsApiapiNotificationsCountGetGET /api/notifications/countRetrieve notifications counts
JammberMozaicApi.NotificationsApiapiNotificationsGetGET /api/notificationsRetrieve a list of Notifications
JammberMozaicApi.NotificationsApiapiNotificationsIdDeleteDELETE /api/notifications/{id}Deletes a Notification
JammberMozaicApi.NotificationsApiapiNotificationsIdPutPUT /api/notifications/{id}Update a Notification (mark as read)
JammberMozaicApi.OrchestrationsApiorchectrationsATTACHFundingPUT /api/orchestrations/{id}/funding/attachAttach a funding source to an `Orchestration`. This defines funding origin.
JammberMozaicApi.OrchestrationsApiorchestrationsATTACHPaymentPushPUT /api/orchestrations/{id}/payment-pushes/attachAttaches a payment push to an `Orchestration` in a pending state.
JammberMozaicApi.OrchestrationsApiorchestrationsCREATEPOST /api/orchestrationsCreate an `Orchestration`
JammberMozaicApi.OrchestrationsApiorchestrationsGETByIdGET /api/orchestrations/{id}Retrieve an `Orchestration` by ID
JammberMozaicApi.OrchestrationsApiorchestrationsGETListGET /api/orchestrationsRetrieve a list of `Orchestrations`
JammberMozaicApi.OrchestrationsApiorchestrationsRUNFundingPOST /api/orchestrations/{id}/funding/runRuns the funding phase for an `Orchestration`
JammberMozaicApi.OrchestrationsApiorchestrationsRUNPaymentsPOST /api/orchestrations/{id}/payments/runRuns the payments phase for the specified `Orchestration`
JammberMozaicApi.PaymentPushesApiapiPaymentPushesBulkPostPOST /api/payment-pushes/bulkCreate payment pushes in bulk
JammberMozaicApi.PaymentPushesApiapiPaymentPushesFeesPostPOST /api/payment-pushes/fees
JammberMozaicApi.PaymentPushesApicreatePaymentPushPOST /api/payment-pushesCreate a PaymentPush
JammberMozaicApi.PaymentPushesApigetAllPaymentPushesGET /api/payment-pushesRetrieve a list of PaymentPushes
JammberMozaicApi.PaymentPushesApigetPaymentPushesByIdGET /api/payment-pushes/{id}Find a PaymentPushCreate by ID
JammberMozaicApi.PaymentsApiapiPaymentsCancelPutPUT /api/payments/cancelCancel a payment
JammberMozaicApi.PaymentsApiapiPaymentsGetGET /api/paymentsRetrieve a list of payments
JammberMozaicApi.PaymentsApiapiPaymentsIdGetGET /api/payments/{id}Retrieve a payment by ID
JammberMozaicApi.PaymentsApiapiPaymentsSearchGetGET /api/payments/searchSearch payments (e.g. between dates, amounts, etc.)
JammberMozaicApi.TenantsApiapiTenantsGetGET /api/tenantsRetrieve information about the current user/tenant
JammberMozaicApi.TenantsApiapiTenantsPostPOST /api/tenantsCreate and on-board a tenant account
JammberMozaicApi.TenantsApiapiTenantsPutPUT /api/tenants
JammberMozaicApi.UserStatusesApiapiUserStatusesGetGET /api/user-statusesGets the UserStatus object
JammberMozaicApi.VersionApiapiVersionGetGET /api/version
JammberMozaicApi.WalletsApiapiWalletsBalanceGetGET /api/wallets/balanceGet the balance for all wallets
JammberMozaicApi.WalletsApiapiWalletsGetGET /api/walletsGet all wallets
JammberMozaicApi.WalletsApiapiWalletsKeyEnablePostPOST /api/wallets/{key}/enableEnable a wallet
JammberMozaicApi.WalletsApiapiWalletsKeyGetGET /api/wallets/{key}Get a single wallet
JammberMozaicApi.WalletsApiapiWalletsKeyPaymentMethodsPostPOST /api/wallets/{key}/payment-methodsAdd a payment method to a wallet
JammberMozaicApi.WalletsApiapiWalletsKeyPaymentMethodsPutPUT /api/wallets/{key}/payment-methodsUpdate a card or bank payment method.
JammberMozaicApi.WalletsApiapiWalletsKeyPayoutMethodsPostPOST /api/wallets/{key}/payout-methodsAdd a payout method to a wallet

Documentation for Models

Documentation for Authorization

bearerAuth

@babel/cliansi-colorsansi-regexansi-stylesanymatchargparseasynckitbabel-plugin-polyfill-corejs2babel-plugin-polyfill-regeneratorarray-frombabel-plugin-polyfill-corejs3binary-extensionsbalanced-matchbrowserslistbrace-expansionbrowser-stdoutcamelcasebuffer-fromchokidarbracescaniuse-litechalkcliuicolor-namecolor-convertclone-deepcombined-streamcommondircall-bindcomponent-emitterconcat-mapconvert-source-mapdecamelizecommandercookiejardebugcore-js-compatdelayed-streamelectron-to-chromiumescape-string-regexpdiffesutilsescaladefill-rangeemoji-regexfast-safe-stringifyexpect.jsfind-cache-dirflatform-dataformidablefind-upfs-readdir-recursivefs.realpathget-caller-filefunction-bindgensyncglob-parenthasfseventsglobget-intrinsicglobalsgrowlhehas-flaginflighthas-symbolsinheritsis-fullwidth-code-pointis-binary-pathis-core-moduleis-numberis-extglobis-globis-plain-objectis-plain-objisexejs-tokensjsescisarrayjson5js-yamllocate-pathjust-extendkind-oflog-symbolslodash.debouncelodashlru-cachemake-dirlolexmimemethodsmime-dbmsminimatchnanoidmime-typesnisenormalize-pathnode-releasesonceobject-inspectp-limitp-locatepath-existspath-is-absolutepath-parsepath-to-regexppifyisobjectpkg-dirpicomatchpicocolorsrandombytesqspiratesreadable-streamregenerateregenerate-unicode-propertiesregenerator-runtimerequire-directoryreaddirpregexpu-coreregenerator-transformsafe-bufferserialize-javascriptregjsparsershallow-clonesemverresolvesource-mapslashside-channelstring-widthsinonstrip-json-commentssource-map-supportsuperagentstrip-ansisupports-colorstring_decoderto-regex-rangesupports-preserve-symlinks-flagto-fast-propertiestype-detectunicode-match-property-value-ecmascriptunicode-match-property-ecmascriptunicode-canonical-property-names-ecmascriptunicode-property-aliases-ecmascriptutil-deprecatewide-alignwrap-ansiupdate-browserslist-dbwhichworkerpooly18nyallistyargs-unparserwrappyp-tryyocto-queueyargs-parseryargs
1.0.1

1 year ago

1.0.0

1 year ago