Sorry, I copied ifttt.
The target of yaif is to connect services in the internet, let them work together and automatically.
Basically, a typical services will have some triggers and actions. For example, Twitter. The home line of Twitter is a trigger, you can get information from it and to do something depends on the content of a tweet. And to post a tweet is an action, which will update and change the status of your home line. Yaif's target is connect all different services. You can create some task, get information from a trigger of A Service, and do an action in B Service.
-
Clone the code and prepare the rails environment.
-
Copy the ./service.template to ./service
-
Update the service information in ./service, for example: oauth secret and key. The update information depends on service authentication type.
-
Run command to import service to database:
$ rake service:import
-
Open config/application.rb and change below username/password:
config.basic_auth_username = 'username' config.basic_auth_password = 'password'
-
Make a invite to your self:
$ rails c irb > u = RegKey.new :email => "user@domain.com" irb > u.save irb > puts u.key db716e8d8 # this output depend on your computer, only example here
-
Start your rails server.
-
Create a new user. Access your site: http://yoursite/signup?reg\_key=db716e8d8 . The reg_key is the output of step 6.
-
Access http://yoursite/crontab with username/password set at step 5. Add lines to your cron to trigger tasks interval.
-
Enjoy.
- Custom error handler. Some action error should be ignore. (for example: fobidden word in weibo)
- Multiply user meta for one service.
- Make normal http login request. (It ought to save user's password directly. Is it OK?)
- Make some css. (I'm lazy…)