-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_request.http
83 lines (57 loc) · 2.28 KB
/
api_request.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
### Get Episodes ###
POST http://localhost:3000/api/episodes HTTP/1.1
### Sync Tracks
POST http://localhost:3000/api/internal/sync-episodes HTTP/1.1
### Get episodes
GET http://localhost:3000/api/trpc/episodes.all HTTP/1.1
### Sync Episodes Old
GET http://localhost:3000/api/trpc/internal.episodesSync
### Sync Episodes New
GET http://localhost:3000/api/trpc/internal.episodesSyncNew
### Get Stream URLS
GET http://localhost:3000/api/trpc/episode.getStreamUrl?input=%7B%22episodeId%22%3A%22624632f8ccc079804723e07b%22%7D HTTP/1.1
### Get soundcloud api token
# @name gatAccessToken
POST http://api.soundcloud.com/oauth2/token?client_id={{SOUNDCLOUD_CLIENT_ID}}&client_secret={{SOUNDCLOUD_CLIENT_SECRET}}&grant_type=client_credentials HTTP/1.1
### Backfill collective
GET http://localhost:3000/api/trpc/internal.backfillCollectives
### Get soundcloud tracks
@SOUNDCLOUD_API_TOKEN = {{gatAccessToken.response.body.access_token}}
# @name getPlaylistDetails
GET http://api.soundcloud.com/playlists/944232886 HTTP/1.1
Authorization: OAuth {{SOUNDCLOUD_API_TOKEN}}
### Get single track details
GET http://api.soundcloud.com/tracks/974975893 HTTP/1.1
Authorization: OAuth {{SOUNDCLOUD_API_TOKEN}}
### Get Stream Url
GET https://api.soundcloud.com/tracks/159482763/streams
Authorization: OAuth {{SOUNDCLOUD_API_TOKEN}}
### Dwnload Track
GET https://api.soundcloud.com/tracks/159482763/download
Authorization: OAuth {{SOUNDCLOUD_API_TOKEN}}
# Test trackId ra.1212031753
### Apple Music Get Track
GET https://api.music.apple.com/v1/catalog/us/songs/ra.1212031753
# Sync Episodes TRPC
# {
# "id": null,
# "result": {
# "type": "data",
# "data": {
# "msg": "Successfully Fetched New Tracks",
# "retrievedTracks": [
# "Soulection Radio Show #542 (Live from 1015 Folsom, San Francisco)",
# "Soulection Radio Show #541",
# "Soulection Radio Show #540",
# "Soulection Radio Show #539",
# "Soulection Radio Show #538 ft. Budgie (A Lover's Special)",
# "Soulection Radio Show #537",
# "Soulection Radio Show #536",
# "Soulection Radio Show #535",
# "Soulection Radio Show #534",
# "Soulection Radio Show #533 (Rich Medina Takeover)",
# "Soulection Radio Show #532 (Andre Power Takeover)"
# ]
# }
# }
# }