PeerRails/phkite

Phoenix App

โ˜… 0Forks 0ElixirGitHub โ†—Compare

README

Phkite

This is not an another PHP Project, it's me who likes kites.

To start your new PhKite app:

  • Install deps with mix deps.get
  • Create database and migrate data mix ecto.setup
  • Install NPM packages npm install
  • Just start this shit ๐Ÿ’ฉ

What it can do (or will do):

  • ๐Ÿ”ณ Grab social link and return download link (twitter video, instagram, youtube)
  • ๐Ÿ”ณ Convert media from link/file to format (twitter gif to actual gif, 4chan webm to mp4/gif)
  • ๐Ÿ”ณ Authorize to save and share results (Twitter/Facebook/Telegram)
  • ๐Ÿ”ณ Present actual API for this (get, convert, share)
  • ๐Ÿ”ณ Telegram Bot (Maybe)

Grabbing social links

API Endpoint:

curl -x POST `/api/grab` -d '{"link": "youtube"}'

Response:

{"links": link1,link2,...}

Converting

API Endpoint:

Link

curl -x POST '/api/convert' -d `{"link": "linktotweet", "format": "mp4/gif"}`

File

curl -x POST '/api/convert' -d `{"file": true, "format": "mp4/gif"}` --data-binary "file"

Response:

{"link": link}

Sharing

Word "Sharing" is implying that You have to authorize in app before uploading to Twitter/FB/Telegram.

And of course You have to know what You are uploading

API Endpoint:

curl -x POST '/api/share' -d `{"id": "result_id", "service": "twitter/facebook/telegram"}`

Contributors

PeerRails

Issues