Creates a client object for accessing the OpenNeuro GraphQL API. The client stores configuration including the API endpoint URL and optional authentication token.
Value
An openneuro_client object (S3 class) containing:
- url
The API endpoint URL
- token
The authentication token (or NULL)
See also
on_request() for executing queries with the client
Examples
# Create client with default settings
client <- on_client()
print(client)
#> <openneuro_client>
#> URL: <https://openneuro.org/crn/graphql>
#> Authenticated: FALSE
# Create client with custom endpoint
client <- on_client(url = "https://staging.openneuro.org/crn/graphql")