Methods
(async) getAlbumsChartMetric(payload) → {object}
get all chartmetric info based on track id
Parameters:
Name | Type | Description |
---|---|---|
payload |
object | token |
Returns:
response object
- Type
- object
(async) getArtist(payload) → {object}
get all chartmetric info based on track id
Parameters:
Name | Type | Description |
---|---|---|
payload |
object | token |
Returns:
response object
- Type
- object
(async) getArtistChartMetric(payload) → {object}
get all chartmetric info based on track id
Parameters:
Name | Type | Description |
---|---|---|
payload |
object | token |
Returns:
response object
- Type
- object
(async) getChartMetricStats(payload) → {object}
get all chartmetric info based on track id
Parameters:
Name | Type | Description |
---|---|---|
payload |
object | token |
Returns:
response object
- Type
- object
(async) getToken(payload) → {string}
get token
Parameters:
Name | Type | Description |
---|---|---|
payload |
object | token |
Returns:
token or null
- Type
- string
(async) getTrackChartMetric(payload) → {object}
get track chart metric
Parameters:
Name | Type | Description |
---|---|---|
payload |
object | token |
Returns:
response object
- Type
- object
(async) getTrackInfo(payload) → {object}
get track info
Parameters:
Name | Type | Description |
---|---|---|
payload |
object | token |
Returns:
response object
- Type
- object
(async) insertLog(nameID) → {object}
insert log
Parameters:
Name | Type | Description |
---|---|---|
nameID |
string |
email ID to check in the database. |
Returns:
sql response
- Type
- object
(async) searchTrack(payload) → {object}
get all chartmetric info based on query
Parameters:
Name | Type | Description |
---|---|---|
payload |
object | token |
Returns:
response object
- Type
- object
(async) send(url, payload, config, method, payload) → {object}
api call to handle all chartmetric third party apis
Parameters:
Name | Type | Default | Description |
---|---|---|---|
url |
string | url |
|
payload |
object | payload |
|
config |
object | config |
|
method |
string |
post
|
method |
payload |
object | token |
Returns:
response object
- Type
- object
(async) updateLog(data) → {object}
update log
Parameters:
Name | Type | Description |
---|---|---|
data |
string | log data |
Returns:
sql response
- Type
- object