Description Usage Arguments Value Examples
View source: R/sanapiwrapper.R
A new GraphQL client is generated. A new query is generated, filled with the query string and (optional) variables, and then executed.
1 | santimentQuery(query_string, query_variables)
|
query_string |
query string |
query_variables |
optional list of query variables |
query result
1 2 3 4 5 6 | santimentQuery('{projectBySlug(slug: "ethereum") {availableQueries}}')
string <- 'query MyQuery($slug: String = \"bitcoin\")
{projectBySlug(slug: $slug) {availableQueries}}'
variables <- list(slug = 'ethereum')
santimentQuery(string, variables)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.