Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[improvement] Supporting images #40
In the Podio API client you can fetch the image url. But you cannot fetch the actual image itself (since you need authentication for that).
However, since the Podio::request method is authorized you could easily built it in there. For now I have changed it locally so it accepts a full url.
So I changed Podio.php line 195
and now I can pass in the full url for an image and load that image. This is just a quick fix, if this get's implemented it should be done with more care. Since now you can insert any url and thus sent your authentication credentials to another domain.
You can use the get_raw method to download files:
This is the preferred way to downloading files from Podio
It works for all file objects from Podio. When you get an item with an image field you can use e.g.