Update Podio profile picture using API -


we planning make podio out of office extension people can add start , end date , profile picture automatically changed out of office version in period.

we cannot see method in podio api documentation , tried solution per official comment here.

but method not working now. here error receiving

enter image description here

any on how this?

please try using https instead of http, , put instead of post.

curl -h "content-type: application/json"       -h "authorization: oauth2 <my_auth_token>"       -x put       -d '{"avatar":<avatar_id>}'      "https://api.podio.com/contact/<profile_id>" 

whole solution:

  1. get users current profile get /contact/user/{user_id} (let's call result p)
  2. get users avatar p.image.link (should url)
  3. download , alter image
  4. as user: upload image - file id, let's call image_id
  5. as user: put /contact/{p.profile_id} value {"avatar" : <image_id>}

Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -