All URIs are relative to http://localhost
Method | HTTP request | Description ------------- | ------------- | ------------- NIHCallback | POST /api/nih/callback | Updates a user's NIH link from a JWT NIHStatus | GET /api/nih/status | Retrieves info about a user's NIH link
NihStatus NIHCallback(jwt)
Updates a user's NIH link from a JWT
library(openapi)
var.jwt <- JWTWrapper$new("jwt_example") # JWTWrapper | JWT from NIH login
#Updates a user's NIH link from a JWT
api.instance <- NIHApi$new()
# Configure OAuth2 access token for authorization: googleoauth
api.instance$apiClient$accessToken <- 'TODO_YOUR_ACCESS_TOKEN';
result <- api.instance$NIHCallback(var.jwt)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- jwt | JWTWrapper| JWT from NIH login |
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | Successfully updated NIH link | - | | 400 | Invalid or malformed JWT | - | | 401 | Unauthorized | - | | 500 | Internal server error saving NIH link to profile | - |
NihStatus NIHStatus()
Retrieves info about a user's NIH link
library(openapi)
#Retrieves info about a user's NIH link
api.instance <- NIHApi$new()
# Configure OAuth2 access token for authorization: googleoauth
api.instance$apiClient$accessToken <- 'TODO_YOUR_ACCESS_TOKEN';
result <- api.instance$NIHStatus()
dput(result)
This endpoint does not need any parameter.
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | Successfully retrieved NIH status | - | | 404 | linkedNihUsername key missing from status | - | | 500 | Internal server error retrieving NIH status | - |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.