Skip to content

oyvindsk/humanio-REST-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Simple Human.io REST example, using perl5 and Mojolicious

Human.io hello world using the REST callback API.

It first creates a Human.io app by POST'ing to their REST API and then starts to listen for callbacks from the human.io servers.

Usage

You need perl5 (at least 5.10) and the Mojolicious module.

Get Mojolicious

There's Mojolicious packages for many systems. If you cant find one (or it's outdated) and you're comfortable with running random code from the web, you can do:

    $ curl get.mojolicio.us | sh

Mojolicious info:

Running

Set the two environment variables HIO_DEVELOPER_ID and HIO_SECRET_KEY and run the perl file.

For example:

    $ HIO_DEVELOPER_ID=foo HIO_SECRET_KEY=bar ./hello_world.pl

Note: By default it is private (public => 0) so you have to follow yourself to see the app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages