1

Using the endpoint /folders of the Orange Cloud API, I can only get the listing of the files in the main directory:

curl -X GET -H "X-Orange-CA-ESID: OFR-2588c...2e64f249ab" -H \
    "Authorization: Bearer OFR-2588c...2e64f249ab" \
     https://api.orange.com/cloud/v1/folders/Lw

How could I get photos entries only, including the ones in subdirectories?

BuZZ-dEE
  • 6,075
  • 12
  • 66
  • 96
Pascal Le Merrer
  • 5,883
  • 20
  • 35

1 Answers1

2

You can get all photos this way:

curl -X GET \ -H  \
     -H "Authorization: Bearer OFR-948ef5..." \
     "https://api.orange.com/cloud/v1/folders?filter=image&flat=true"

By the way, the session header is no more necessary

https://developer.orange.com/apis/cloud-france/getting-started#filtering-on-photos,-videos,-audio-files

BuZZ-dEE
  • 6,075
  • 12
  • 66
  • 96
Adil
  • 36
  • 2
  • Good news for the session header. It will be easier to use. Thanks! – Pascal Le Merrer Jan 05 '16 at 21:14
  • Do you happen to know if there are any limitations regarding the number of files returned in one API call? I get maximum 550 results, and the pagination is not working for files. – mkbrv Mar 08 '16 at 16:24
  • I'm not aware of such limitaion about the maximum results. Regarding pagination, it includes folders in the result even though the filter option is used – Adil Mar 11 '16 at 09:00