Gateway micro service for sharing content with ease βοΈ
Altruist is a bridge to a pletory of services. It acts as a server. All the wiring hard work has been done, no more:
- manual coding of social services API,
- reading outdated docs for each services you want to use,
- comparing and finding the right module,
- developing a new custom lib for a specific service.
It focuses on Social Network and File SAAS and it abstract the internal differences of all of this services.
If you need to share with one of the following services, then π Altruist is for you.
Simply connect your prefered account through the web server altruist provide and post your data to π Altruist.
All the APIs have been meticulously integrated to respond to the same form of media POST to π Altruist.
Currently π Altruist supports the following data form POST:
-
application/json
raw -
application/x-www-form-urlencode
-
multipart/form-data
Install the tool:
$ yarn global add altruist
# or
$ npm install -g altruist
then, provide a settings file:
# get the template
$ wget https://raw.githubusercontent.com/soixantecircuits/altruist/master/settings/settings.default.json
# rename it
$ mv settings.default.json settings.json
# start altruist web server
$ altruist --settings settings.json
For details about what to write in the settings file, See the Actions section below.
Then, from a server, an app or POSTMAN you can post to:
POST http://localhost:6060/api/v1/actions/{ACTION_NAME}
One action = one service
- mailchimp
- mandrill
- slack
- dropbox
- google drive
- youtube
- mailjet
- smtp
- scp
- ftp
- 1000mercis
- socialite
authRedirect
in the settings file (/authRedirect
by default).
You can meet some issue while uploading file and JSON. This is a bug in POSTMAN. See here: postmanlabs/postman-app-support#2602 A way to fix it is to close and reopen the tab you are using to test the query. (http://stackoverflow.com/questions/35851660/multer-req-file-always-undefined/38461398#38461398)
Thanks for helping us! π
Please follow:
Please use the develop
branch if you want to contribute.