ruby - How can I make POST requests without making my API key public? -
using imageshack api can upload images imageshack have use api key that. can create post form image upload imageshack key has put in form , exposes api key publicly. how can upload images imageshack without exposing api key?
i think way image first posted own application user.
then in app internally redirect post imageshack, can use api key safely without ever seeing it.
you can use easy restclient run post request back-end. need store image temporarily on server, either in memory or on disk, retransmission imageshack.
so:
- user sends image post server
- your server receives image in post request user
- your server runs post image imageshack using api key
- the post request step 1 returns user
Comments
Post a Comment