The inventory items returned depend on the target user’s choice under
*Settings > Privacy > Who can see my inventory?**:
If the user granted inventory visibility to "Everyone," then any API key
or OAuth2 token can be used to view the target’s inventory, no matter what
scopes it has or who created it.
If the user has not granted inventory visibility to "Everyone":
Their inventory can still be viewed with an API key created by the
target user with Inventory: Read permission.
Their inventory can still be viewed with an OAuth2 token if the target
user authorizes an app requesting permissions for the
user.inventory-item:read scope.
Scopes:user.inventory-item:readEngine: Usable with HttpService
user_id The user ID.
maxPageSize The maximum number of inventory items to return. The service might return
fewer than this value. If unspecified, at most 10 inventory items are
returned. The maximum value is 100 and higher values are set to 100.
pageToken A page token, received from a previous call, to retrieve a subsequent page.
When paginating, all other parameters provided to the subsequent call must
match the call that provided the page token.
filter This field may be set in order to filter the resources returned.
See the
filtering
documentation for more information.
BETAList the inventory items in a user's inventory.
The inventory items returned depend on the target user’s choice under *Settings > Privacy > Who can see my inventory?**: If the user granted inventory visibility to "Everyone," then any API key or OAuth2 token can be used to view the target’s inventory, no matter what scopes it has or who created it. If the user has not granted inventory visibility to "Everyone":
user.inventory-item:readscope.Scopes:
user.inventory-item:readEngine: Usable with HttpServiceuser_id The user ID. maxPageSize The maximum number of inventory items to return. The service might return fewer than this value. If unspecified, at most 10 inventory items are returned. The maximum value is 100 and higher values are set to 100. pageToken A page token, received from a previous call, to retrieve a subsequent page.
When paginating, all other parameters provided to the subsequent call must match the call that provided the page token. filter This field may be set in order to filter the resources returned.
See the filtering documentation for more information.