-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Module examples and Bugs client accessibility.
- Loading branch information
Showing
5 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from rsack.clients import bugs | ||
|
||
client = bugs.Client() # Initialize client object | ||
client.auth(username='', password='') # Authorize user | ||
|
||
artist_response = client.get_meta(type='artist', id=80219706) # Make call for artist information using artist UID | ||
album_response = client.get_meta(type='album', id=4071297) # Make call for album information using album UID | ||
track_response = client.get_meta(type='track', id=6147328) # Make call for track information using track UID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from rsack.clients import genie | ||
|
||
client = genie.Client() # Initialize client object | ||
client.auth(username="", password="") # Authorize user | ||
|
||
album = client.get_album(82525503) # Make call for album information using album UID | ||
artist = client.get_artist(80006273) # Make call for artist information using artist UID | ||
track = client.get_stream_meta(95970973) # Make call for stream information using track UID | ||
|
||
print(track) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters