since ‎03-01-2021
‎19-03-2021
malkow
Level 1
Re: Photoshop API: Presets method returns 400 Bad Request...
Avatar

malkow

malkow
- Adobe I/O Console
I managed to make a successful request now. I had to use dropbox for inputs and outputs hrefs. Seems like there is an issue with the Creative Cloud Files authorization.

Views

172

Likes

0

Replies

0
Re: Photoshop API: Presets method returns 400 Bad Request...
Avatar

malkow

malkow
- Adobe I/O Console
Okay so the OAuth is now configured and with the token I get from OAuth (scope is "AdobeID,openid") I receive:{"error_code":"403016","message":"Oauth token type not valid"} According to the Developer Console the service I need to use "Lightroom - Creative Cloud Automation Services" requires a JWT access token, not an OAuth. But as I said, using the generated token from the console results in:{"title":"Unauthorized","code":401,"type":"InvalidAuthTokenError","details":{"reason":"Unable to access t...

Views

184

Likes

0

Replies

0
Re: Photoshop API: Presets method returns 400 Bad Request...
Avatar

malkow

malkow
- Adobe I/O Console
Thanks, now I receive a result body: {"title":"Unauthorized","code":401,"type":"InvalidAuthTokenError","details":{"reason":"Unable to access the input href","name":"/files/input.jpg"}}

Views

203

Likes

0

Replies

0
Photoshop API: Presets method returns 400 Bad Request with empty body
Avatar

malkow

malkow
- Adobe I/O Console
I'm trying to get a successful /lrService/presets call. I got myself a token and assembled a request according to https://github.com/AdobeDocs/lightroom-api-docs#presets but I always get a 400 Bad Request response with a completely empty body. Any ideas?That's my request:{ "curlopts": { "HTTPHEADER": [ "authorization: Bearer eyJ4NXUiOiJpbXNfbmExLWtleS0xLmNlciIsImFsZyI6IlJ...GElSq1Pg", "Content-Type: application/json", "x-api-key: 448...2c0f" ] }, "json": { "inputs": { "source": { "href": "/files...

Views

218

Likes

0

Replies

7