[][src]Module rspotify::util

utils function

Functions

convert_map_to_string

convert map to query_string, for example: convert {"redirect_uri":"my_uri", "state":"my-state" "scope":"test-scope"} to redirect_uri=my_uri&state=my-state&scope=test-scope Since hashmap is not sorted, so the order of key-value-pairs may differ from times

convert_str_to_map

convert query string to map, for example: convert redirect_uri=my_uri&state=my-state&scope=test-scope to {"redirect_uri":"my_uri", "state":"my-state" "scope":"test-scope"}

datetime_to_timestamp

convert datetime to unix timestampe

generate_random_string

generate length random chars

get_token

get tokenInfo by Authorization

get_token_by_code

get tokenInfo by authorization and code

process_token
request_token