Odonno / modern-gitter-winjs

Windows 10 client of gitter, written in WinJS
https://www.microsoft.com/store/apps/modern-gitter/9wzdncrd2tzj
9 stars 0 forks source link

Attach images in chat #3

Open Odonno opened 8 years ago

Odonno commented 8 years ago

The process seems to be a little complicated.

  1. GET request to https://gitter.im/api/private/generate-signature?room_uri=Odonno/modern-gitter-test&room_id=5688645016b6c7089cc0e846&type=image
  2. GET request to something like https://api2.transloadit.com/instances/bored?callback=_jqjsp&_...=
  3. finally POST the image to something like https://breagh.transloadit.com/assemblies/...?redirect=false
  4. send GET requests every x seconds to know if the upload succeed