0

I'm trying to query Box API to identify if a user has a free or a paid account. So far I was able to query:

https://api.box.com/2.0/users/me?fields=enterprise

and I checked that if a user have a free account the attribute "enterprise" is null. But the problem is I can't distinguish between a paid account and a developer account because the have the same info on enterprise object:

{
    "type": "user",
    "id": "123",
    "enterprise": {
        "type": "enterprise",
        "id": "456",
        "name": "..."
    }
}

Is there a way to identify theses 3 types of account (free, paid and developer)?

4

1 回答 1

0

Currently you can only check whether or not the user has an enterprise by calling the GET /users/me endpoint.

{
    "type": "user",
    "id": "123",
    "enterprise": {
        "type": "enterprise",
        "id": "456",
        "name": "..."
    }
}

and checking to see if the enterprise attribute is null to distinguish between a personal and enterprise user.

于 2013-05-30T17:21:46.537 回答