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:
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
rawapplication/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
β οΈ Some actions may require that you log in before using them. You can get a list of those actions with their login url by sending a GET request to the url matching 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: https://github.com/postmanlabs/postman-app-support/issues/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.