2020-09-06 18:45:07 +03:00
|
|
|
{
|
|
|
|
"info": {
|
2021-01-10 19:00:16 +03:00
|
|
|
"_postman_id": "632b8649-8470-43d3-934d-8c89dc90464c",
|
2020-09-06 18:45:07 +03:00
|
|
|
"name": "Maloja",
|
|
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
|
|
},
|
|
|
|
"item": [
|
|
|
|
{
|
|
|
|
"name": "Scrobble Native",
|
|
|
|
"item": [
|
|
|
|
{
|
|
|
|
"name": "Query String",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [],
|
|
|
|
"body": {
|
|
|
|
"mode": "formdata",
|
|
|
|
"formdata": []
|
|
|
|
},
|
|
|
|
"url": {
|
2021-01-10 19:00:16 +03:00
|
|
|
"raw": "{{url}}/apis/mlj_1/newscrobble?key={{api_key}}&artist={{example_artist}}&title={{example_song}}&artist={{example_artist_2}}",
|
2020-09-06 18:45:07 +03:00
|
|
|
"host": [
|
2020-09-06 19:54:31 +03:00
|
|
|
"{{url}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"apis",
|
|
|
|
"mlj_1",
|
|
|
|
"newscrobble"
|
|
|
|
],
|
|
|
|
"query": [
|
|
|
|
{
|
|
|
|
"key": "key",
|
|
|
|
"value": "{{api_key}}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "artist",
|
|
|
|
"value": "{{example_artist}}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "title",
|
|
|
|
"value": "{{example_song}}"
|
2021-01-10 19:00:16 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "artist",
|
|
|
|
"value": "{{example_artist_2}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Query String Redirect",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
2020-09-06 19:54:31 +03:00
|
|
|
"header": [],
|
2020-09-06 18:45:07 +03:00
|
|
|
"url": {
|
2021-01-10 19:00:16 +03:00
|
|
|
"raw": "{{url}}/api/newscrobble?key={{api_key}}&artist={{example_artist}}&title={{example_song}}&artist={{example_artist_2}}",
|
2020-09-06 18:45:07 +03:00
|
|
|
"host": [
|
2020-09-06 19:54:31 +03:00
|
|
|
"{{url}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"api",
|
|
|
|
"newscrobble"
|
|
|
|
],
|
|
|
|
"query": [
|
|
|
|
{
|
|
|
|
"key": "key",
|
|
|
|
"value": "{{api_key}}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "artist",
|
|
|
|
"value": "{{example_artist}}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "title",
|
|
|
|
"value": "{{example_song}}"
|
2021-01-10 19:00:16 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "artist",
|
|
|
|
"value": "{{example_artist_2}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Formdata",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [],
|
|
|
|
"body": {
|
|
|
|
"mode": "formdata",
|
|
|
|
"formdata": [
|
|
|
|
{
|
|
|
|
"key": "key",
|
|
|
|
"value": "{{api_key}}",
|
|
|
|
"type": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "artist",
|
|
|
|
"value": "{{example_artist}}",
|
|
|
|
"type": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "title",
|
|
|
|
"value": "{{example_song}}",
|
|
|
|
"type": "text"
|
2021-01-10 19:00:16 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "artist",
|
|
|
|
"value": "{{example_artist_2}}",
|
|
|
|
"type": "text"
|
2020-09-06 18:45:07 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"url": {
|
2020-09-06 19:54:31 +03:00
|
|
|
"raw": "{{url}}/apis/mlj_1/newscrobble",
|
2020-09-06 18:45:07 +03:00
|
|
|
"host": [
|
2020-09-06 19:54:31 +03:00
|
|
|
"{{url}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"apis",
|
|
|
|
"mlj_1",
|
|
|
|
"newscrobble"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Formdata Redirect",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
2020-09-06 19:54:31 +03:00
|
|
|
"header": [],
|
2020-09-06 18:45:07 +03:00
|
|
|
"body": {
|
|
|
|
"mode": "formdata",
|
|
|
|
"formdata": [
|
|
|
|
{
|
|
|
|
"key": "key",
|
|
|
|
"value": "{{api_key}}",
|
|
|
|
"type": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "artist",
|
|
|
|
"value": "{{example_artist}}",
|
|
|
|
"type": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "title",
|
|
|
|
"value": "{{example_song}}",
|
|
|
|
"type": "text"
|
2021-01-10 19:00:16 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "artist",
|
|
|
|
"value": "{{example_artist_2}}",
|
|
|
|
"type": "text"
|
2020-09-06 18:45:07 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"url": {
|
2020-09-06 19:54:31 +03:00
|
|
|
"raw": "{{url}}/api/newscrobble",
|
2020-09-06 18:45:07 +03:00
|
|
|
"host": [
|
2020-09-06 19:54:31 +03:00
|
|
|
"{{url}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"api",
|
|
|
|
"newscrobble"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "JSON",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [
|
|
|
|
{
|
|
|
|
"key": "Content-Type",
|
|
|
|
"name": "Content-Type",
|
|
|
|
"value": "application/json",
|
|
|
|
"type": "text"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"body": {
|
|
|
|
"mode": "raw",
|
|
|
|
"raw": "{\n \"key\": \"{{api_key}}\",\n \"artist\": \"{{example_artist}}\",\n \"title\": \"{{example_song}}\"\n}"
|
|
|
|
},
|
|
|
|
"url": {
|
2020-09-06 19:54:31 +03:00
|
|
|
"raw": "{{url}}/apis/mlj_1/newscrobble",
|
2020-09-06 18:45:07 +03:00
|
|
|
"host": [
|
2020-09-06 19:54:31 +03:00
|
|
|
"{{url}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"apis",
|
|
|
|
"mlj_1",
|
|
|
|
"newscrobble"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
2021-01-10 19:00:16 +03:00
|
|
|
{
|
|
|
|
"name": "JSON Multiartist",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [
|
|
|
|
{
|
|
|
|
"key": "Content-Type",
|
|
|
|
"name": "Content-Type",
|
|
|
|
"type": "text",
|
|
|
|
"value": "application/json"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"body": {
|
|
|
|
"mode": "raw",
|
|
|
|
"raw": "{\n \"key\": \"{{api_key}}\",\n \"artists\": [\"{{example_artist}}\",\"{{example_artist_2}}\"],\n \"title\": \"{{example_song}}\"\n}"
|
|
|
|
},
|
|
|
|
"url": {
|
|
|
|
"raw": "{{url}}/apis/mlj_1/newscrobble",
|
|
|
|
"host": [
|
|
|
|
"{{url}}"
|
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"apis",
|
|
|
|
"mlj_1",
|
|
|
|
"newscrobble"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
2020-09-06 18:45:07 +03:00
|
|
|
{
|
|
|
|
"name": "JSON Redirect",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [
|
|
|
|
{
|
|
|
|
"key": "Content-Type",
|
|
|
|
"name": "Content-Type",
|
|
|
|
"type": "text",
|
|
|
|
"value": "application/json"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"body": {
|
|
|
|
"mode": "raw",
|
|
|
|
"raw": "{\n \"key\": \"{{api_key}}\",\n \"artist\": \"{{example_artist}}\",\n \"title\": \"{{example_song}}\"\n}"
|
|
|
|
},
|
|
|
|
"url": {
|
2020-09-06 19:54:31 +03:00
|
|
|
"raw": "{{url}}/api/newscrobble",
|
2020-09-06 18:45:07 +03:00
|
|
|
"host": [
|
2020-09-06 19:54:31 +03:00
|
|
|
"{{url}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"api",
|
|
|
|
"newscrobble"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Scrobble Listenbrainz",
|
|
|
|
"item": [
|
|
|
|
{
|
|
|
|
"name": "JSON",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [
|
|
|
|
{
|
|
|
|
"key": "Content-Type",
|
|
|
|
"name": "Content-Type",
|
|
|
|
"value": "application/json",
|
|
|
|
"type": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Authorization",
|
|
|
|
"value": "token {{api_key}}",
|
|
|
|
"type": "text"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"body": {
|
|
|
|
"mode": "raw",
|
|
|
|
"raw": "{\n\t\"listen_type\":\"single\",\n\t\"payload\":[\n\t\t{\n\t\t\t\"track_metadata\":{\n\t\t\t\t\"artist_name\":\"{{example_artist}}\",\n\t\t\t\t\"track_name\":\"{{example_song}}\"\n\t\t\t}\n\t\t}\n\t]\n}"
|
|
|
|
},
|
|
|
|
"url": {
|
2020-09-06 19:54:31 +03:00
|
|
|
"raw": "{{url}}/apis/listenbrainz/1/submit-listens",
|
2020-09-06 18:45:07 +03:00
|
|
|
"host": [
|
2020-09-06 19:54:31 +03:00
|
|
|
"{{url}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"apis",
|
|
|
|
"listenbrainz",
|
|
|
|
"1",
|
|
|
|
"submit-listens"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "JSON Redirect",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [
|
|
|
|
{
|
|
|
|
"key": "Content-Type",
|
|
|
|
"name": "Content-Type",
|
|
|
|
"type": "text",
|
|
|
|
"value": "application/json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Authorization",
|
|
|
|
"type": "text",
|
|
|
|
"value": "token {{api_key}}"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"body": {
|
|
|
|
"mode": "raw",
|
|
|
|
"raw": "{\n\t\"listen_type\":\"single\",\n\t\"payload\":[\n\t\t{\n\t\t\t\"track_metadata\":{\n\t\t\t\t\"artist_name\":\"{{example_artist}}\",\n\t\t\t\t\"track_name\":\"{{example_song}}\"\n\t\t\t}\n\t\t}\n\t]\n}"
|
|
|
|
},
|
|
|
|
"url": {
|
2020-09-06 19:54:31 +03:00
|
|
|
"raw": "{{url}}/api/s/listenbrainz/1/submit-listens",
|
2020-09-06 18:45:07 +03:00
|
|
|
"host": [
|
2020-09-06 19:54:31 +03:00
|
|
|
"{{url}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"api",
|
|
|
|
"s",
|
|
|
|
"listenbrainz",
|
|
|
|
"1",
|
|
|
|
"submit-listens"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Scrobble Audioscrobbler",
|
|
|
|
"item": [
|
|
|
|
{
|
|
|
|
"name": "JSON",
|
|
|
|
"event": [
|
|
|
|
{
|
|
|
|
"listen": "test",
|
|
|
|
"script": {
|
|
|
|
"exec": [
|
|
|
|
""
|
|
|
|
],
|
|
|
|
"type": "text/javascript"
|
|
|
|
}
|
2020-10-29 19:21:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"listen": "prerequest",
|
|
|
|
"script": {
|
|
|
|
"exec": [
|
|
|
|
""
|
|
|
|
],
|
|
|
|
"type": "text/javascript"
|
|
|
|
}
|
2020-09-06 18:45:07 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [
|
|
|
|
{
|
|
|
|
"key": "Content-Type",
|
|
|
|
"name": "Content-Type",
|
|
|
|
"value": "application/json",
|
|
|
|
"type": "text"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"body": {
|
|
|
|
"mode": "raw",
|
|
|
|
"raw": "{\n\t\"method\":\"track.scrobble\",\n\t\"artist\":\"{{example_artist}}\",\n\t\"track\":\"{{example_song}}\",\n\t\"sk\":\"{{session_key}}\"\n}"
|
|
|
|
},
|
|
|
|
"url": {
|
2020-09-06 19:54:31 +03:00
|
|
|
"raw": "{{url}}/apis/audioscrobbler/2.0/",
|
2020-09-06 18:45:07 +03:00
|
|
|
"host": [
|
2020-09-06 19:54:31 +03:00
|
|
|
"{{url}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"apis",
|
|
|
|
"audioscrobbler",
|
|
|
|
"2.0",
|
|
|
|
""
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
2020-09-06 19:54:31 +03:00
|
|
|
{
|
|
|
|
"name": "JSON Redirect",
|
|
|
|
"event": [
|
|
|
|
{
|
|
|
|
"listen": "test",
|
|
|
|
"script": {
|
|
|
|
"exec": [
|
|
|
|
""
|
|
|
|
],
|
|
|
|
"type": "text/javascript"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [
|
|
|
|
{
|
|
|
|
"key": "Content-Type",
|
|
|
|
"name": "Content-Type",
|
|
|
|
"type": "text",
|
|
|
|
"value": "application/json"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"body": {
|
|
|
|
"mode": "raw",
|
|
|
|
"raw": "{\n\t\"method\":\"track.scrobble\",\n\t\"artist\":\"{{example_artist}}\",\n\t\"track\":\"{{example_song}}\",\n\t\"sk\":\"{{session_key}}\"\n}"
|
|
|
|
},
|
|
|
|
"url": {
|
|
|
|
"raw": "{{url}}/api/s/audioscrobbler/2.0/",
|
|
|
|
"host": [
|
|
|
|
"{{url}}"
|
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"api",
|
|
|
|
"s",
|
|
|
|
"audioscrobbler",
|
|
|
|
"2.0",
|
|
|
|
""
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
2020-09-06 18:45:07 +03:00
|
|
|
{
|
|
|
|
"name": "Authorize",
|
|
|
|
"event": [
|
|
|
|
{
|
|
|
|
"listen": "test",
|
|
|
|
"script": {
|
|
|
|
"exec": [
|
|
|
|
"var data = JSON.parse(responseBody);",
|
|
|
|
"postman.setEnvironmentVariable(\"session_key\", data.session.key);",
|
|
|
|
"",
|
|
|
|
"tests[\"gotkey\"] = true;"
|
|
|
|
],
|
|
|
|
"type": "text/javascript"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [
|
|
|
|
{
|
|
|
|
"key": "Content-Type",
|
|
|
|
"name": "Content-Type",
|
|
|
|
"value": "application/json",
|
|
|
|
"type": "text"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"body": {
|
|
|
|
"mode": "raw",
|
|
|
|
"raw": "{\n\t\"method\":\"auth.getMobileSession\",\n\t\"authToken\":\"abc\",\n\t\"username\":\"someguy\",\n\t\"password\":\"{{api_key}}\"\n}"
|
|
|
|
},
|
|
|
|
"url": {
|
2020-09-06 19:54:31 +03:00
|
|
|
"raw": "{{url}}/apis/audioscrobbler/2.0/",
|
2020-09-06 18:45:07 +03:00
|
|
|
"host": [
|
2020-09-06 19:54:31 +03:00
|
|
|
"{{url}}"
|
2020-09-06 18:45:07 +03:00
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"apis",
|
|
|
|
"audioscrobbler",
|
|
|
|
"2.0",
|
|
|
|
""
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
}
|
|
|
|
]
|
2020-10-29 19:21:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Scrobble Audioscrobbler Legacy",
|
|
|
|
"item": [
|
|
|
|
{
|
|
|
|
"name": "Authorize",
|
|
|
|
"event": [
|
|
|
|
{
|
|
|
|
"listen": "test",
|
|
|
|
"script": {
|
|
|
|
"exec": [
|
|
|
|
"var data = responseBody.split(\"\\n\");",
|
2020-11-01 20:05:11 +03:00
|
|
|
"postman.setEnvironmentVariable(\"session_key\", data[1]);",
|
|
|
|
"postman.setEnvironmentVariable(\"scrobble_url\", data[3]);"
|
2020-10-29 19:21:50 +03:00
|
|
|
],
|
|
|
|
"type": "text/javascript"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"listen": "prerequest",
|
|
|
|
"script": {
|
|
|
|
"exec": [
|
|
|
|
"apikey = pm.variables.get(\"api_key\");",
|
2020-11-01 20:05:11 +03:00
|
|
|
"ts = pm.variables.get(\"timestamp\");",
|
2020-10-29 19:21:50 +03:00
|
|
|
"",
|
|
|
|
"token = CryptoJS.MD5(CryptoJS.MD5(apikey) + ts)",
|
|
|
|
"postman.setEnvironmentVariable(\"legacy_token\", token);"
|
|
|
|
],
|
|
|
|
"type": "text/javascript"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"protocolProfileBehavior": {
|
|
|
|
"disableBodyPruning": true
|
|
|
|
},
|
|
|
|
"request": {
|
|
|
|
"method": "GET",
|
|
|
|
"header": [],
|
|
|
|
"body": {
|
|
|
|
"mode": "raw",
|
|
|
|
"raw": ""
|
|
|
|
},
|
|
|
|
"url": {
|
2020-11-01 22:41:30 +03:00
|
|
|
"raw": "{{url}}/apis/audioscrobbler_legacy/?hs=true&t={{timestamp}}&a={{legacy_token}}",
|
2020-10-29 19:21:50 +03:00
|
|
|
"host": [
|
|
|
|
"{{url}}"
|
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"apis",
|
|
|
|
"audioscrobbler_legacy",
|
|
|
|
""
|
|
|
|
],
|
|
|
|
"query": [
|
|
|
|
{
|
|
|
|
"key": "hs",
|
|
|
|
"value": "true"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "t",
|
2020-11-01 20:05:11 +03:00
|
|
|
"value": "{{timestamp}}"
|
2020-10-29 19:21:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "a",
|
|
|
|
"value": "{{legacy_token}}"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Scrobble",
|
|
|
|
"request": {
|
|
|
|
"method": "GET",
|
|
|
|
"header": [],
|
|
|
|
"url": {
|
2020-11-01 20:05:11 +03:00
|
|
|
"raw": "{{scrobble_url}}?s={{session_key}}&a[0]={{example_artist}}&t[0]={{example_song}}&a[1]={{example_artist_2}}&t[1]={{example_song_2}}&i[0]={{timestamp}}&i[1]={{timestamp_2}}",
|
2020-10-29 19:21:50 +03:00
|
|
|
"host": [
|
2020-11-01 20:05:11 +03:00
|
|
|
"{{scrobble_url}}"
|
2020-10-29 19:21:50 +03:00
|
|
|
],
|
|
|
|
"query": [
|
|
|
|
{
|
2020-11-01 20:05:11 +03:00
|
|
|
"key": "s",
|
|
|
|
"value": "{{session_key}}"
|
2020-10-29 19:21:50 +03:00
|
|
|
},
|
|
|
|
{
|
2020-11-01 20:05:11 +03:00
|
|
|
"key": "a[0]",
|
|
|
|
"value": "{{example_artist}}"
|
2020-10-29 19:21:50 +03:00
|
|
|
},
|
|
|
|
{
|
2020-11-01 20:05:11 +03:00
|
|
|
"key": "t[0]",
|
|
|
|
"value": "{{example_song}}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "a[1]",
|
|
|
|
"value": "{{example_artist_2}}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "t[1]",
|
|
|
|
"value": "{{example_song_2}}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "i[0]",
|
|
|
|
"value": "{{timestamp}}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "i[1]",
|
|
|
|
"value": "{{timestamp_2}}"
|
2020-10-29 19:21:50 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
}
|
2021-01-10 19:00:16 +03:00
|
|
|
]
|
2020-09-06 18:45:07 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"event": [
|
|
|
|
{
|
|
|
|
"listen": "prerequest",
|
|
|
|
"script": {
|
|
|
|
"type": "text/javascript",
|
|
|
|
"exec": [
|
2020-11-01 20:05:11 +03:00
|
|
|
"var current_timestamp = Math.floor(Date.now() / 1000);",
|
|
|
|
"postman.setEnvironmentVariable(\"timestamp\", current_timestamp);",
|
|
|
|
"postman.setEnvironmentVariable(\"timestamp_2\", current_timestamp - 200);"
|
2020-09-06 18:45:07 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"listen": "test",
|
|
|
|
"script": {
|
|
|
|
"type": "text/javascript",
|
|
|
|
"exec": [
|
|
|
|
""
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"variable": [
|
|
|
|
{
|
2020-09-06 19:54:31 +03:00
|
|
|
"key": "url",
|
2020-10-29 19:21:50 +03:00
|
|
|
"value": "http://localhost:42010"
|
2020-09-06 19:54:31 +03:00
|
|
|
},
|
|
|
|
{
|
2020-09-06 18:45:07 +03:00
|
|
|
"key": "api_key",
|
2020-10-29 19:21:50 +03:00
|
|
|
"value": "localdevtestkey"
|
2020-09-06 18:45:07 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "example_artist",
|
2020-10-29 19:21:50 +03:00
|
|
|
"value": "EXID ft. Jeremy Soule"
|
2020-09-06 18:45:07 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "example_song",
|
2020-10-29 19:21:50 +03:00
|
|
|
"value": "Why is the Rum gone?"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "example_artist_2",
|
|
|
|
"value": "BLACKPINK ft. Tzuyu"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "example_song_2",
|
|
|
|
"value": "POP/STARS"
|
2020-09-06 18:45:07 +03:00
|
|
|
}
|
|
|
|
]
|
2020-09-06 19:54:31 +03:00
|
|
|
}
|