Метод | Описание | |
---|---|---|
AdminClient ( string adminToken, string asUser = null, bool suppressNotifications = null ) : BoxClient |
Create admin BoxClient using an admin access token
|
|
AdminToken ( ) : string |
Get admin token by posting data to auth url
|
|
BoxJWTAuth ( IBoxConfig boxConfig ) : Box.V2.Auth |
Constructor for JWT authentication
|
|
Session ( string token ) : |
Create OAuth session from token
|
|
UserClient ( string userToken, string userId ) : BoxClient |
Create user BoxClient using a user access token
|
|
UserToken ( string userId ) : string |
Once you have created an App User, you can request a User Access Token via the App Auth feature, which will return the OAuth 2.0 access token for the specified App User.
|
Метод | Описание | |
---|---|---|
ConstructJWTAssertion ( string sub, string boxSubType ) : string | ||
JWTAuthPost ( string assertion ) : |
public AdminClient ( string adminToken, string asUser = null, bool suppressNotifications = null ) : BoxClient | ||
adminToken | string | Admin access token |
asUser | string | The user ID to set as the 'As-User' header parameter; used to make calls in the context of a user using an admin token |
suppressNotifications | bool | Whether or not to suppress both email and webhook notifications. Typically used for administrative API calls. Your application must have “Manage an Enterprise” scope, and the user making the API calls is a co-admin with the correct "Edit settings for your company" permission. |
Результат | BoxClient |
public BoxJWTAuth ( IBoxConfig boxConfig ) : Box.V2.Auth | ||
boxConfig | IBoxConfig | Config contains information about client id, client secret, enterprise id, private key, private key password, public key id |
Результат | Box.V2.Auth |
public Session ( string token ) : |
||
token | string | Access token created by method UserToken, or AdminToken |
Результат |
public UserClient ( string userToken, string userId ) : BoxClient | ||
userToken | string | User access token |
userId | string | Id of the user |
Результат | BoxClient |
public UserToken ( string userId ) : string | ||
userId | string | Id of the user |
Результат | string |