% if mode == 'definition': Balanced::Callback.new % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') callback = Balanced::Callback.new( :method => 'post', :url => 'http://www.example.com/callback' ).save % elif mode == 'response': #"/callbacks/CB44XaMOcxsUnuQoA5A4VKCx", "id"=>"CB44XaMOcxsUnuQoA5A4VKCx", "links"=>{}, "method"=>"post", "revision"=>"1.1", "url"=>"http://www.example.com/callback"}, @hyperlinks={}> % endif