Skip to content

Latest commit

 

History

History
152 lines (106 loc) · 3.62 KB

AffiliatesApi.md

File metadata and controls

152 lines (106 loc) · 3.62 KB

MinergateApi.AffiliatesApi

All URIs are relative to https://api.minergate.com/1.0

Method HTTP request Description
getAffiliateChildren GET /affiliate/childrens Affiliate Childrens
getAffiliateLinks GET /affiliate/links Affiliate Links
getAffiliateProfit GET /affiliate/profit Affiliate Profit

getAffiliateChildren

Object getAffiliateChildren()

Affiliate Childrens

Returns the list of user’s affiliates. Requires authorization.

Example

var MinergateApi = require('minergate_api');
var defaultClient = MinergateApi.ApiClient.default;

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix = 'Token';

var apiInstance = new MinergateApi.AffiliatesApi();

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

Parameters

This endpoint does not need any parameter.

Return type

Object

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getAffiliateLinks

Object getAffiliateLinks()

Affiliate Links

Returns the list of user’s affiliate links. Requires authorization.

Example

var MinergateApi = require('minergate_api');
var defaultClient = MinergateApi.ApiClient.default;

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix = 'Token';

var apiInstance = new MinergateApi.AffiliatesApi();

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

Parameters

This endpoint does not need any parameter.

Return type

Object

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getAffiliateProfit

Object getAffiliateProfit()

Affiliate Profit

Returns the user’s income from affiliates. Requires authorization.

Example

var MinergateApi = require('minergate_api');
var defaultClient = MinergateApi.ApiClient.default;

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix = 'Token';

var apiInstance = new MinergateApi.AffiliatesApi();

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

Parameters

This endpoint does not need any parameter.

Return type

Object

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json