get_referent | R Documentation |
The Genius API lets you return data for a specific referent.
get_referent
returns this data in full.
get_referent( created_by_id, song_id, web_page_id, access_token = genius_token() )
created_by_id |
ID of a user to get referents for |
song_id |
ID of a song to get referents for (pass only one of |
web_page_id |
ID of a web page to get referents for (pass only one of |
access_token |
Genius' client access token, defaults to |
Referents are the sections of a piece of content to which annotations are attached. Each referent is associated with a web page or a song and may have one or more annotations. Referents can be searched by the document they are attached to or by the user that created them.
a genius_referent
object that contains the extracted content from the request,
the original JSON response object and the request path.
Other annotation:
get_annotation()
## Not run: get_referent(song_id = 3039923) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.