I have registered my application in the API console and I am able to access the Lightroom and CC Libraries with no error. These are the scope that I am using.
openid,lr_partner_apis,offline_access,cc_libraries,creative_sdk"
I have a number of CC Libraries in my account, yet when I make this call, I don’t get any results. Any suggestions?
static async GetLibrariesAsync(token: string){
const options ={
headers: {
"x-api-key": adobeApiKey,
Authorization: `Bearer ${token}`,
},
};
try{
const response = await axios.get(
"https://cc-libraries.adobe.io/api/v1/libraries/",
options);
console.log(`${response.data.libraries.length} CC libraries.`);
return response.data.libraries;
} catch(error){
console.log(error);
}
}