0.1.1 • Published 6 years ago

dynamix v0.1.1

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

dynamix

Dynamix - JavaScript client for dynamix Sign up for Dynamix & grab your token.

  • API version: v0.1.0
  • Package version: v0.1.0

For more information, please visit http://theadsontop.com

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

or with yarn:

yarn add dynamix

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 Dynamix = require('dynamix');

var api = new Dynamix.APITokenApi()

var namespace = "namespace_example"; // {String} 

var body = new Dynamix.AccountRegistrationRequest(); // {AccountRegistrationRequest} 


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

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
Dynamix.APITokenApicreateAccountPOST /api/tokenCreates an Ads on Top Dynamix account
Dynamix.AdConstraintApigetConstraintsPUT /constraintsAdConstraintResource - GetVector
Dynamix.AdRankerApiattachProbabilitiesPOST /rankerAdConstraintResource - Apply Soft Constraints
Dynamix.AdSourceAdapterApipopPUT /api/source/engine/popAdSourceAdapterResource - pop
Dynamix.AdSourceAdapterApiproduceAdPOST /api/source/engine/adAdSourceAdapterResource - produceAd
Dynamix.CatalogApicreateCatalogItemPOST /api/catalog/itemCreate a catalog item
Dynamix.CatalogApideleteCatalogItemDELETE /api/catalog/itemDelete a Catalog entry
Dynamix.CatalogApigetCatalogItemGET /api/catalog/itemGet a single Catalog Item
Dynamix.CatalogApigetCatalogItemsPUT /api/catalog/item/bulk/getGet Catalog Items Paged
Dynamix.CatalogApilistCatalogPUT /api/catalog/list/searchList the Catalog entries
Dynamix.CatalogApilistCatalog_0PUT /api/catalog/list/typeList the Catalog entries
Dynamix.CatalogApiupdateCatalogItemPUT /api/catalog/itemUpdate a Catalog entry
Dynamix.ContentProviderRegistrationApibulkGetAuthorizedRegistrationsGET /api/source/bulk/authbulkGetAuthorizedRegistrations
Dynamix.ContentProviderRegistrationApibulkResolveContentProviderRegistrationsPOST /api/source/bulk/resolvebulkResolveContentProviderRegistrations
Dynamix.ContentProviderRegistrationApicreateContentProviderRegistrationPOST /api/sourcecreateContentProviderRegistration
Dynamix.ContentProviderRegistrationApideleteContentProviderRegistrationDELETE /api/sourcedeleteContentProviderRegistration
Dynamix.ContentProviderRegistrationApigetAllContentProviderRegistrationsPOST /api/source/paged/authgetAllContentProviderRegistrations
Dynamix.ContentProviderRegistrationApiupdateContentProviderRegistrationPUT /api/sourceupdateContentProviderRegistration
Dynamix.DefaultSourceContentApideleteContentDELETE /api/source-engine/default/registerDefaultSourceContentResource - deleteContent
Dynamix.DefaultSourceContentApigetAllAuthorizedContentPagedPOST /api/source-engine/default/register/paged
Dynamix.DefaultSourceContentApigetContentRequestGET /api/source-engine/default/register
Dynamix.DefaultSourceContentApiregisterNewContentPOST /api/source-engine/default/registerDefaultSourceContentResource - registerNewContent
Dynamix.DefaultSourceContentApiupdateContentPUT /api/source-engine/default/registerDefaultSourceContentResource - updateContent
Dynamix.DefaultSourceContentApiuploadFilePOST /api/source-engine/default/register/uploadDefaultSourceContentResource - uploadFile
Dynamix.DeliveryApigetNextAdGET /api/deliveryGet next Ad
Dynamix.DeliveryApipopAdPOST /api/deliveryTrigger Proof of Play on Ad
Dynamix.DynamixCreditApiaddCreditsPOST /api/credit/addAdd credits to a vault.
Dynamix.DynamixCreditApicheckBalanceGET /api/credit/balanceChecks the balance of a given vault.
Dynamix.PublisherApibulkResolvePublishersPOST /api/publisher/bulk/resolvePublisherResource - bulkResolvePublishers
Dynamix.PublisherApideletePublisherDELETE /api/publisherPublisherResource - deletePublisher
Dynamix.PublisherApigetAllAuthorizedPublishersPOST /api/publisher/authorizedPublisherResource - getAllAuthorizedPublishers
Dynamix.PublisherApiregisterPublisherPOST /api/publisherPublisherResource - registerPublisher
Dynamix.PublisherApiupdatePublisherPUT /api/publisherPublisherResource - updatePublisher

Documentation for Models

Documentation for Authorization

Contact Ads on Top to get a Token