2020-09-06 18:45:07 +03:00
|
|
|
{
|
|
|
|
"info": {
|
|
|
|
"_postman_id": "98472441-3ca2-4aba-9148-81f8d1a61b16",
|
|
|
|
"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": {
|
2020-09-06 19:54:31 +03:00
|
|
|
"raw": "{{url}}/apis/mlj_1/newscrobble?key={{api_key}}&artist={{example_artist}}&title={{example_song}}",
|
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}}"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2020-09-06 19:54:31 +03:00
|
|
|
"raw": "{{url}}/api/newscrobble?key={{api_key}}&artist={{example_artist}}&title={{example_song}}",
|
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}}"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"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": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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": {
|
|
|
|
"id": "60551e90-aea5-4489-aded-a93c6d2ae055",
|
|
|
|
"exec": [
|
|
|
|
""
|
|
|
|
],
|
|
|
|
"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\":\"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": {
|
|
|
|
"id": "60551e90-aea5-4489-aded-a93c6d2ae055",
|
|
|
|
"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": {
|
|
|
|
"id": "28214541-89bf-4184-ad9b-dd49dbcfc35d",
|
|
|
|
"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": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"event": [
|
|
|
|
{
|
|
|
|
"listen": "prerequest",
|
|
|
|
"script": {
|
|
|
|
"id": "6659b674-ce6f-48b5-bb64-880356ce6739",
|
|
|
|
"type": "text/javascript",
|
|
|
|
"exec": [
|
|
|
|
""
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"listen": "test",
|
|
|
|
"script": {
|
|
|
|
"id": "09c3ea43-30e4-4e83-b32f-dd06c1884bab",
|
|
|
|
"type": "text/javascript",
|
|
|
|
"exec": [
|
|
|
|
""
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"variable": [
|
|
|
|
{
|
2020-09-06 19:54:31 +03:00
|
|
|
"id": "0206e63b-eeb7-49cc-9824-5398b18f7736",
|
|
|
|
"key": "url",
|
|
|
|
"value": "http://localhost:42010",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "0c6402d8-dfb7-4c87-a6ca-9b6675b8d9a1",
|
2020-09-06 18:45:07 +03:00
|
|
|
"key": "api_key",
|
|
|
|
"value": "localdevtestkey",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
2020-09-06 19:54:31 +03:00
|
|
|
"id": "bae7cf4e-fe0e-490d-8446-56a8ac51373d",
|
2020-09-06 18:45:07 +03:00
|
|
|
"key": "example_artist",
|
|
|
|
"value": "EXID ft. Jeremy Soule",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
2020-09-06 19:54:31 +03:00
|
|
|
"id": "70454e83-de63-471b-a58c-8545cef4e749",
|
2020-09-06 18:45:07 +03:00
|
|
|
"key": "example_song",
|
|
|
|
"value": "Why is the Rum gone?",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
]
|
2020-09-06 19:54:31 +03:00
|
|
|
}
|