Post
Topic
Board Beginners & Help
Re: Where to promote my service?
by
victorlin
on 04/04/2013, 04:35:27 UTC
By the way, it's very easy to use, this is why I named it "EZ".

To read bitcoin price and push to my service, here you can write Python script like this

Code:
import time
import urllib
 
import ezcomet
 
 
def read_price():
    f = urllib.urlopen('http://data.mtgox.com/api/1/BTCUSD/ticker')
    content = f.read()
    return content
 
 
def main():
    api = ezcomet.EZCometAPI(
        api_key='',
        user_name='demo',
    )
    while True:
        time.sleep(30)
        price_data = read_price()
        api.write('bitcoi[Suspicious link removed]ice', price_data)
 
if __name__ == '__main__':
    main()

The javascript to receive messages is also simple

Code:



You can see the live demo here

http://ezcomet.com/demo/bitcoin_price

If you have question about my service, you can ask me here. Cheesy