>> (p.1)
    Author Topic: Idea for a paid, anonymous api service.  (Read 1888 times)
    payb.tc (OP)
    Hero Member
    *****
    Offline Offline

    Activity: 812
    Merit: 1000



    View Profile
    April 25, 2012, 01:58:54 AM
     #1

    i'm just brainstorming, none of this has been coded, thought through much, or debugged... i'm just typing it out as i think of it...

    you send an api request to a certain web service, along with an optional postback url:

    eg. http://server.com/secret_info?postback=http://client.com/receive_info.php

    server then outputs something like:

    Code:
    array(
      'price' => 3.5  // BTC
      'address' => 1vfjfiowjeifwojeiofwjweiiwjfwoeio/unique purchase address
      'expires' => '2012-05-01 12:30:00'
    )

    client then sends 3.5 btc to the address given, and the server posts the secret info to the client's postback url as soon as it sees the transaction on the network (or as soon as it has a certain number of confirmations).

    ...............

    alternatively, (for more client anonymity), if the client doesn't specify a postback url, the server simply outputs a key for use in a secondary request:

    Code:
    array(
      'price' => 3.5  // BTC
      'address' => 1vfjfiowjeifwojeiofwjweiiwjfwoeio/unique purchase address
      'expires' => '2012-05-01 12:30:00'
      'key' => 'afwiejowjeiwjefifjwioejfwijefijmwiejcoiw'/this is a unique 'api key' for retrieving the secret info
    )

    once the client has the unique key, it sends 3.5 btc to the address given, and then re-asks the server for the info:

    eg. http://server.com/secret_info?key=afwiejowjeiwjefifjwioejfwijefijmwiejcoiw

    the server then checks to see if the corresponding address has received the purchase amount (3.5 btc) and if so outputs the secret info:

    Code:
    array(
      'secret_info' => 'ponies are cool'
    )


    no signup necessary, no ongoing api membership fees... just one-off payments for one-off pieces of info from the api.

    one might pay blockexplorer/blockchain.info in this manner if they charged a tiny amount for each request

    that way if they charged a certain price, they could allow requests to come in far more often, like thousands per hour.
Page 1
Viewing Page: 1