SCapi_specific: Return query results for specific users / tracks / playlists/...

Description Usage Arguments Details Author(s) See Also Examples

View source: R/SCapi_specific.R

Description

A client ID is necessary to query results from the SoundCloud API. See loginDetails

Usage

1
2
3
SCapi_specific(client_id, soundcloud_search, type = c("url", "id", "name"),
  query_type = c("users", "tracks", "playlists", "groups", "comments"),
  limit = 50, verbose = FALSE, get = NULL, filter = NULL, ...)

Arguments

client_id

The soundcloud client id of your application. See loginDetails() for more information

soundcloud_search

Primary search query. Must be a name of a soundcloud track or user, a url pointing to a search query, or a soundcloud id.

type

Type of your soundcloud_search. Must be one of "url", "id", or "name".

query_type

What would you like to query? depends on your soundcloud_search input value. E.g. if you are querying a user, use "users". If you are querying tracks, use "tracks" etc. See documentation for more information.

limit

how many results should be returned? Soundcloud allows you to query 200 results per query. If you want more results, this is possible by paginating (done automatically).

verbose

prints the url to query for every request.

get

Any additional information for 'users'. For example, if you want to query all tracks for a user, choose 'tracks'. For more information on get requests, see section 'subresources' under 'users': http://bit.ly/1OwCaUC. Defaults to NULL.

filter

Use if you want to add filters to the query. See: http://bit.ly/1OwCaUC for more information. Filters must be added as a list, e.g. filter = list("q" = "the-bugle").

...

any other arguments. Currently not used.

Details

For additional information about filters and the soundcloud API, see: http://bit.ly/1OwCaUC

Author(s)

Jasper Ginn

See Also

loginDetails

Examples

1
2
3
4
5
6
7
## Not run: 
Query up to 50 results of the playlists from url provided.
results <- SCapi_specific(client_id, "https://soundcloud.com/the-source-2013/sets",
                          type = "url", query_type = "playlists", limit = 50, get = NULL,
                          filter=NULL)

## End(Not run)

JasperHG90/RSoundCloud documentation built on May 7, 2019, 10:33 a.m.