Forum Discussion

ENGR_MANSOOR's avatar
ENGR_MANSOOR
New member | Level 2
4 years ago
Solved

I am working on coralNet API a web solution for coral reef Analysis.

I am working on the process of using the CoralNet API so that you can obtain sparse labels for an image using an already trained classifier (i.e. source). where we first submit a request to CoralNet using their API instructing which source we want to use, the image(s) we're trying to annotate, and the location we want the sparse labels to be (that's right, we get to specify). After submitting the request, we wait and periodically check back to see the progress. Once the request has been completed, we're sent back the annotations, which are then converted into a .csv file.

But Next we'll create a list of all of the images that are currently in the dropbox 'project_folder'. You can see below that we create a list called file_list and in it we store just a single image, which includes all of the metadata from dropbox. Note that you can increase the number of images you want to be annotated by the source by changing the num_images variable

 

But i get an error:

How to resolve this error please your cooperation will be highly appreciated

  • Greg-DB's avatar
    Greg-DB
    4 years ago

    ENGR_MANSOOR You'll need to enable the "files.metadata.read" scope on the "Permissions" tab of the app's page on the App Console, then click "Submit". Then, authorize the app again to get a new access token (and optional refresh token) as Здравко noted, since that change is not retroactive to existing authorizations.

4 Replies

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    4 years ago

    Hi ENGR_MANSOOR,

    All you need to change is already pointed out in the error message posted. Have you done it? If not, just do it. 😉

    Take in mind that associated scopes are "cached" within your token used! You need to revoke current token and reauthorize your application (login) anew, so the change can take effect.

    Hope this helps.

  • ENGR_MANSOOR's avatar
    ENGR_MANSOOR
    New member | Level 2
    4 years ago

    Thanks for your kind reply. Actually I am getting confused in app authorization permission.

    What should select in permission tab to resolve the issue.
    Best regard!

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    ENGR_MANSOOR You'll need to enable the "files.metadata.read" scope on the "Permissions" tab of the app's page on the App Console, then click "Submit". Then, authorize the app again to get a new access token (and optional refresh token) as Здравко noted, since that change is not retroactive to existing authorizations.

  • ENGR_MANSOOR's avatar
    ENGR_MANSOOR
    New member | Level 2
    4 years ago

    Thanks a lot my problem solved successfully.

     A great platform to discuss issue here!

    Regard!

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!