box-open-sdk 0.3.1

Box API client for Rust (open source, community, punk rock) — typed models, async managers, and a reqwest runtime with retry, backoff, and token refresh.
Documentation
<!-- Generated by box-gantry. DO NOT EDIT. -->
# AuthorizationManager

Reach these methods through the `authorization` field on `client::Client`.

## authorize

`GET /authorize`

| Parameter | In | Type | Required |
|---|---|---|---|
| `response_type` | query | `GetAuthorizeResponseType` | yes |
| `client_id` | query | `String` | yes |
| `redirect_uri` | query | `String` | no |
| `state` | query | `String` | no |
| `scope` | query | `String` | no |

**Returns:** text (`String`)

**Example**

```rust
let result = client.authorization.authorize(Default::default(), "CLIENT_ID".to_string(), None).await?;
```

## create_oauth2_token

`POST /oauth2/token`

**Request body** (`application/x-www-form-urlencoded`): `PostOAuth2Token`

**Returns:** `AccessToken`

**Example**

```rust
let result = client.authorization.create_oauth2_token(schemas::PostOAuth2Token { /* … */ }).await?;
```

## create_oauth2_token_refresh

`POST /oauth2/token`

**Request body** (`application/x-www-form-urlencoded`): `PostOAuth2TokenRefreshAccessToken`

**Returns:** `AccessToken`

**Example**

```rust
let result = client.authorization.create_oauth2_token_refresh(schemas::PostOAuth2TokenRefreshAccessToken { /* … */ }).await?;
```

## revoke_oauth2

`POST /oauth2/revoke`

**Request body** (`application/x-www-form-urlencoded`): `PostOAuth2Revoke`

**Returns:** no content

**Example**

```rust
client.authorization.revoke_oauth2(schemas::PostOAuth2Revoke { /* … */ }).await?;
```