|
| 1 | +# MinergateApi.AffiliatesApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.minergate.com/1.0* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**getAffiliateChildren**](AffiliatesApi.md#getAffiliateChildren) | **GET** /affiliate/childrens | Affiliate Childrens |
| 8 | +[**getAffiliateLinks**](AffiliatesApi.md#getAffiliateLinks) | **GET** /affiliate/links | Affiliate Links |
| 9 | +[**getAffiliateProfit**](AffiliatesApi.md#getAffiliateProfit) | **GET** /affiliate/profit | Affiliate Profit |
| 10 | + |
| 11 | + |
| 12 | +<a name="getAffiliateChildren"></a> |
| 13 | +# **getAffiliateChildren** |
| 14 | +> Object getAffiliateChildren() |
| 15 | +
|
| 16 | +Affiliate Childrens |
| 17 | + |
| 18 | +Returns the list of user’s affiliates. **Requires authorization.** |
| 19 | + |
| 20 | +### Example |
| 21 | +```javascript |
| 22 | +var MinergateApi = require('minergate_api'); |
| 23 | +var defaultClient = MinergateApi.ApiClient.default; |
| 24 | + |
| 25 | +// Configure API key authorization: token |
| 26 | +var token = defaultClient.authentications['token']; |
| 27 | +token.apiKey = 'YOUR API KEY'; |
| 28 | +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) |
| 29 | +//token.apiKeyPrefix = 'Token'; |
| 30 | + |
| 31 | +var apiInstance = new MinergateApi.AffiliatesApi(); |
| 32 | + |
| 33 | +var callback = function(error, data, response) { |
| 34 | + if (error) { |
| 35 | + console.error(error); |
| 36 | + } else { |
| 37 | + console.log('API called successfully. Returned data: ' + data); |
| 38 | + } |
| 39 | +}; |
| 40 | +apiInstance.getAffiliateChildren(callback); |
| 41 | +``` |
| 42 | + |
| 43 | +### Parameters |
| 44 | +This endpoint does not need any parameter. |
| 45 | + |
| 46 | +### Return type |
| 47 | + |
| 48 | +**Object** |
| 49 | + |
| 50 | +### Authorization |
| 51 | + |
| 52 | +[token](../README.md#token) |
| 53 | + |
| 54 | +### HTTP request headers |
| 55 | + |
| 56 | + - **Content-Type**: Not defined |
| 57 | + - **Accept**: application/json |
| 58 | + |
| 59 | +<a name="getAffiliateLinks"></a> |
| 60 | +# **getAffiliateLinks** |
| 61 | +> Object getAffiliateLinks() |
| 62 | +
|
| 63 | +Affiliate Links |
| 64 | + |
| 65 | +Returns the list of user’s affiliate links. **Requires authorization.** |
| 66 | + |
| 67 | +### Example |
| 68 | +```javascript |
| 69 | +var MinergateApi = require('minergate_api'); |
| 70 | +var defaultClient = MinergateApi.ApiClient.default; |
| 71 | + |
| 72 | +// Configure API key authorization: token |
| 73 | +var token = defaultClient.authentications['token']; |
| 74 | +token.apiKey = 'YOUR API KEY'; |
| 75 | +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) |
| 76 | +//token.apiKeyPrefix = 'Token'; |
| 77 | + |
| 78 | +var apiInstance = new MinergateApi.AffiliatesApi(); |
| 79 | + |
| 80 | +var callback = function(error, data, response) { |
| 81 | + if (error) { |
| 82 | + console.error(error); |
| 83 | + } else { |
| 84 | + console.log('API called successfully. Returned data: ' + data); |
| 85 | + } |
| 86 | +}; |
| 87 | +apiInstance.getAffiliateLinks(callback); |
| 88 | +``` |
| 89 | + |
| 90 | +### Parameters |
| 91 | +This endpoint does not need any parameter. |
| 92 | + |
| 93 | +### Return type |
| 94 | + |
| 95 | +**Object** |
| 96 | + |
| 97 | +### Authorization |
| 98 | + |
| 99 | +[token](../README.md#token) |
| 100 | + |
| 101 | +### HTTP request headers |
| 102 | + |
| 103 | + - **Content-Type**: Not defined |
| 104 | + - **Accept**: application/json |
| 105 | + |
| 106 | +<a name="getAffiliateProfit"></a> |
| 107 | +# **getAffiliateProfit** |
| 108 | +> Object getAffiliateProfit() |
| 109 | +
|
| 110 | +Affiliate Profit |
| 111 | + |
| 112 | +Returns the user’s income from affiliates. **Requires authorization.** |
| 113 | + |
| 114 | +### Example |
| 115 | +```javascript |
| 116 | +var MinergateApi = require('minergate_api'); |
| 117 | +var defaultClient = MinergateApi.ApiClient.default; |
| 118 | + |
| 119 | +// Configure API key authorization: token |
| 120 | +var token = defaultClient.authentications['token']; |
| 121 | +token.apiKey = 'YOUR API KEY'; |
| 122 | +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) |
| 123 | +//token.apiKeyPrefix = 'Token'; |
| 124 | + |
| 125 | +var apiInstance = new MinergateApi.AffiliatesApi(); |
| 126 | + |
| 127 | +var callback = function(error, data, response) { |
| 128 | + if (error) { |
| 129 | + console.error(error); |
| 130 | + } else { |
| 131 | + console.log('API called successfully. Returned data: ' + data); |
| 132 | + } |
| 133 | +}; |
| 134 | +apiInstance.getAffiliateProfit(callback); |
| 135 | +``` |
| 136 | + |
| 137 | +### Parameters |
| 138 | +This endpoint does not need any parameter. |
| 139 | + |
| 140 | +### Return type |
| 141 | + |
| 142 | +**Object** |
| 143 | + |
| 144 | +### Authorization |
| 145 | + |
| 146 | +[token](../README.md#token) |
| 147 | + |
| 148 | +### HTTP request headers |
| 149 | + |
| 150 | + - **Content-Type**: Not defined |
| 151 | + - **Accept**: application/json |
| 152 | + |
0 commit comments