Skip to content

Commit 20ea578

Browse files
committed
feat: add User methods
1 parent 4341e37 commit 20ea578

34 files changed

Lines changed: 358 additions & 2928 deletions
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
info:
2-
name: add-playlist
2+
name: add-playlists
33
type: http
44
seq: 4
55

@@ -11,7 +11,7 @@ http:
1111
data:
1212
- name: access_token
1313
value: "{{access-token}}"
14-
- name: playlist_id
14+
- name: playlist_ids
1515
value: "{{playlist-id}}"
1616
auth: inherit
1717

bruno-collection/user/get-album-chart.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ info:
55

66
http:
77
method: GET
8-
url: "{{api-host}}/user/me/charts/albums?access_token={{access-token}}"
8+
url: "{{api-host}}/user/me/charts/albums?access_token={{access-token}}&index=0&limit=1"
99
params:
1010
- name: access_token
1111
value: "{{access-token}}"
1212
type: query
13+
- name: index
14+
value: "0"
15+
type: query
16+
- name: limit
17+
value: "1"
18+
type: query
1319
auth: inherit
1420

1521
settings:

bruno-collection/user/get-album-recommendations.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ info:
55

66
http:
77
method: GET
8-
url: "{{api-host}}/user/me/recommendations/albums?access_token={{access-token}}"
8+
url: "{{api-host}}/user/me/recommendations/albums?access_token={{access-token}}&index=0&limit=1"
99
params:
1010
- name: access_token
1111
value: "{{access-token}}"
1212
type: query
13+
- name: index
14+
value: "0"
15+
type: query
16+
- name: limit
17+
value: "1"
18+
type: query
1319
auth: inherit
1420

1521
settings:

bruno-collection/user/get-albums.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ info:
55

66
http:
77
method: GET
8-
url: "{{api-host}}/user/me/albums?access_token={{access-token}}"
8+
url: "{{api-host}}/user/me/albums?access_token={{access-token}}&index=0&limit=1"
99
params:
1010
- name: access_token
1111
value: "{{access-token}}"
1212
type: query
13+
- name: index
14+
value: "0"
15+
type: query
16+
- name: limit
17+
value: "1"
18+
type: query
1319
auth: inherit
1420

1521
settings:

bruno-collection/user/get-artist-chart.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ info:
55

66
http:
77
method: GET
8-
url: "{{api-host}}/user/me/charts/artists?access_token={{access-token}}"
8+
url: "{{api-host}}/user/me/charts/artists?access_token={{access-token}}&index=0&limit=1"
99
params:
1010
- name: access_token
1111
value: "{{access-token}}"
1212
type: query
13+
- name: index
14+
value: "0"
15+
type: query
16+
- name: limit
17+
value: "1"
18+
type: query
1319
auth: inherit
1420

1521
settings:

bruno-collection/user/get-artist-recommendations.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ info:
55

66
http:
77
method: GET
8-
url: "{{api-host}}/user/me/recommendations/artists?access_token={{access-token}}"
8+
url: "{{api-host}}/user/me/recommendations/artists?access_token={{access-token}}&index=0&limit=1"
99
params:
1010
- name: access_token
1111
value: "{{access-token}}"
1212
type: query
13+
- name: index
14+
value: "0"
15+
type: query
16+
- name: limit
17+
value: "1"
18+
type: query
1319
auth: inherit
1420

1521
settings:

bruno-collection/user/get-artists.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ info:
55

66
http:
77
method: GET
8-
url: "{{api-host}}/user/me/artists?access_token={{access-token}}"
8+
url: "{{api-host}}/user/me/artists?access_token={{access-token}}&index=0&limit=1"
99
params:
1010
- name: access_token
1111
value: "{{access-token}}"
1212
type: query
13+
- name: index
14+
value: "0"
15+
type: query
16+
- name: limit
17+
value: "1"
18+
type: query
1319
auth: inherit
1420

1521
settings:

bruno-collection/user/get-chart.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ info:
55

66
http:
77
method: GET
8-
url: "{{api-host}}/user/me/charts?access_token={{access-token}}"
8+
url: "{{api-host}}/user/me/charts?access_token={{access-token}}&index=0&limit=1"
99
params:
1010
- name: access_token
1111
value: "{{access-token}}"
1212
type: query
13+
- name: index
14+
value: "0"
15+
type: query
16+
- name: limit
17+
value: "1"
18+
type: query
1319
auth: inherit
1420

1521
settings:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
info:
2-
name: delete-album
2+
name: remove-album
33
type: http
4-
seq: 9
4+
seq: 36
55

66
http:
77
method: DELETE
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
info:
2-
name: delete-artist
2+
name: remove-artist
33
type: http
4-
seq: 10
4+
seq: 37
55

66
http:
77
method: DELETE

0 commit comments

Comments
 (0)