Grant
Class representing a Nylas Grant object.
Constructors
Link copied to clipboard
public Grant Grant(@Json(name = "id" ) String id, @Json(name = "provider" ) String provider, @Json(name = "scope" ) List<String> scope, @Json(name = "created_at" ) Long createdAt, @Json(name = "grant_status" ) String grantStatus, @Json(name = "email" ) String email, @Json(name = "user_agent" ) String userAgent, @Json(name = "ip" ) String ip, @Json(name = "state" ) String state, @Json(name = "updated_at" ) Long updatedAt, @Json(name = "provider_user_id" ) String providerUserId, @Json(name = "settings" ) Map<String, Object> settings)
Properties
Functions
Link copied to clipboard
Unix timestamp when the grant was created.
Link copied to clipboard
Status of the grant, if it is still valid or if the user needs to re-authenticate.
Link copied to clipboard
OAuth provider that the user authenticated with.
Link copied to clipboard
Provider's ID for the user this grant is associated with.
Link copied to clipboard
Settings required by the provider that were sent as part of the OAuth request.
Link copied to clipboard
Unix timestamp when the grant was updated.
Link copied to clipboard
End user's client user agent.