You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
15
+
16
+
# Additional headers
17
+
18
+
BoxClient provides a convenient methods, which allow passing additional headers, which will be included
19
+
in every API call made by the client.
20
+
21
+
## As-User header
22
+
23
+
The As-User header is used by enterprise admins to make API calls on behalf of their enterprise's users.
24
+
This requires the API request to pass an As-User: USER-ID header. For more details see the [documentation on As-User](https://developer.box.com/en/guides/authentication/oauth2/as-user/).
25
+
26
+
The following example assume that the client has been instantiated with an access token belonging to an admin-level user
27
+
or Service Account with appropriate privileges to make As-User calls.
28
+
29
+
Calling the `client.withAsUserHeader()` method creates a new client to impersonate user with the provided ID.
30
+
All calls made with the new client will be made in context of the impersonated user, leaving the original client unmodified.
- The unique identifier that represent this `zip` archive. Example: "Lu6fA9Ob-jyysp3AAvMF4AkLEwZwAYbL=tgj2zIC=eK9RvJnJbjJl9rNh2qBgHDpyOCAOhpM=vajg2mKq8Mdd"
100
+
-downloadUrl`string`
101
+
- The URL that can be used to download created `zip` archive. Example: `https://dl.boxcloud.com/2.0/zip_downloads/29l00nfxDyHOt7RphI9zT_w==nDnZEDjY2S8iEWWCHEEiptFxwoWojjlibZjJ6geuE5xnXENDTPxzgbks_yY=/content`
- The unique identifier that represent this `zip` archive. Example: "Lu6fA9Ob-jyysp3AAvMF4AkLEwZwAYbL=tgj2zIC=eK9RvJnJbjJl9rNh2qBgHDpyOCAOhpM=vajg2mKq8Mdd"
142
+
-statusUrl`string`
143
+
- The URL that can be used to get the status of the `zip` archive being downloaded. Example: `https://dl.boxcloud.com/2.0/zip_downloads/29l00nfxDyHOt7RphI9zT_w==nDnZEDjY2S8iEWWCHEEiptFxwoWojjlibZjJ6geuE5xnXENDTPxzgbks_yY=/status`
0 commit comments