Send messages and receive replies with one http request
No registration required. Try it out and sign up later
No firewall configuration or opening ports
No need for your own server or app
#!/bin/bashecho "waiting for user..."ACTION=$(curl -s https://api.pushback.io/v1/send_sync \-u <access token>: \-d 'id=User_1' \-d 'title=Choose a color' \-d 'body=It will change the lightblub below!' \-d "action1=Blue" \-d "action2=Green")echo "user action was: $ACTION"
import sysimport requestsprint("waiting for user...")data = {"id": 'User_1',"title": 'Choose a color',"body": "It will change the lightblub below!","action1": 'Blue',"action2": 'Green',}r = requests.post("https://api.pushback.io/v1/send_sync",json=data,headers={"Authorization": "Bearer <at_token>"})print("user action was: " + r.content)
require "net/http"require "json"puts "waiting for user..."uri = URI('https://api.pushback.io/v1/send_sync')req = Net::HTTP::Post.new uri,'Content-Type' => 'application/json','Authorization' => 'Bearer <at_token>'req.body = {id: 'User_1',title: 'Choose a color',body: "It will change the lightblub below!",action1: 'Blue',action2: 'Green',}.to_jsonres = Net::HTTP.start(uri.hostname, uri.port,use_ssl: true) { |http| http.request(req) }puts "user action was: #{res.body}"
package mainimport ("bytes""encoding/json""fmt""io/ioutil""net/http""os")func main() {fmt.Println("waiting for user...")values := map[string]string{"id": "User_1","title": "Choose a color","body": "It will change the lightbulb below!","action1": "Blue","action2": "Green",}jsonData, err := json.Marshal(values)checkErr(err)req, err := http.NewRequest("POST","https://api.pushback.io/v1/send_sync",bytes.NewBuffer(jsonData))checkErr(err)req.Header.Add("Content-Type", "application/json")req.Header.Add("Authorization", "Bearer <at_token>")resp, err := http.DefaultClient.Do(req)checkErr(err)defer resp.Body.Close()body, err := ioutil.ReadAll(resp.Body)checkErr(err)fmt.Printf("user action was: %s", body)}func checkErr(err error) {if err != nil {panic(err)}}
Code samples in bash, ruby, python, golang, bash, etc
Further integration to your server with webhooks
Available on all platforms -- iOS, Android, and web
Once you have solidified your idea you can invite others with a link. They will be able to interact with the same notifications as you. Organize friends, family, or co-workers into seperate channels so that they only have limited access.
Install the app and do one http request. That's it.
See all your messages and replies in one place
No registration required. Try it out and sign up later.
Invite friends, family, and coworkers to receive messages with a link.
Synchronous mode blocks code execution until a reply is received
messageSent {
title
body
}
replySent {
text
message {
id
}
}
Notify your server anytime a message or reply is sent
Easily send messages from the app and view complete message history
Send a message if a process stops logging
find program.log -mmin +20 -execdir pushback "The system is down!"
Track your habits with cron jobs
0 0 1 * * pushback "Pay Rent"0 22 * * 1-5 pushback "Exercise"
Get progress updates
ddrescuelog -t /Volumes/etc/part1-ddrescue.log | pushback "$(</dev/stdin)"
Execute arbitrary commands (not recommended)
eval $(pushback "Run command") | pushback "$(</dev/stdin)"