Herbert (OP)
|
|
February 22, 2012, 07:11:26 PM |
|
Good to see another alternative to the old notify service It would be neat if we all could agree on a subset of POST data, that we all send, so that the same code could be used with any notify service, afaik theres 4 to pick from now. That does not prevent each software from adding extra data, just as long as the basic data is what is used for signature verification. That would also mean any shop modules could easily be adapted for each site. Like that idea! Maybe we can start a page on the bitcoin wiki to discuss/define the format?
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
|
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
Herbert (OP)
|
|
February 22, 2012, 07:38:20 PM |
|
New Feature online: RSS/Atom feedsAgents now have a new notification option. You can enable creation of feed entries in the agent settings. If feed entries are enabled for an agent, you will see two links "rss feed" and "atom feed" in the dashboard. As an example I set up two feeds: Check how many coins DeepBit is getting on the famous 1VayNert... address: Atom - RSSFollow incoming donations for bitcoinmonitor.net: Atom - RSSNote: These links, by nature of rss/atom, are public. Anybody who knows the url can read them (and it is quite easy to guess feed urls with the current url scheme...). So it's probably not a good idea to setup an rss feed for your personal wallet unless you want everybody to know whats your income ;-)
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
MORA
|
|
February 22, 2012, 08:10:01 PM |
|
Like that idea! Maybe we can start a page on the bitcoin wiki to discuss/define the format?
Sure, or another thread for the discussion part. For the rough part we seem to be using the same idea, some values concatted together with a secret value and hashed, the values and hash algorithm is different, but...
|
|
|
|
mcorlett
Donator
Sr. Member
Offline
Activity: 308
Merit: 250
|
|
February 23, 2012, 12:57:16 AM |
|
I've donated half a bitcoin, and will double my donation if you add functionality for addition and removal of an agent's watched addresses via an API call.
This way, you don't have to constantly monitor hundreds of addresses that may or may not be in use, and I can ping you with a new address for every sale and remove it once it's done. Win/win situation. Bonus points if you can make it so that addresses not in use for N days are automatically removed.
|
|
|
|
Herbert (OP)
|
|
February 23, 2012, 09:37:20 AM |
|
I've donated half a bitcoin, and will double my donation if you add functionality for addition and removal of an agent's watched addresses via an API call. Appreciated :-) This way, you don't have to constantly monitor hundreds of addresses that may or may not be in use, and I can ping you with a new address for every sale and remove it once it's done. Win/win situation. Bonus points if you can make it so that addresses not in use for N days are automatically removed.
Ha, this is exactly what I had in mind for the API! Like you said, availability of these features should simplify both ends. At the moment the API development is still in early stages as there are/were few other topics I want to get done before (feed implementation was the main point, one more bigger task to do). So it will take probably around 2 more weeks until i have a first API ready for testing.
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
Herbert (OP)
|
|
February 24, 2012, 11:14:37 PM |
|
New Feature online: withdrawal notificationAgents can now be configured to check for incoming transactions (Deposits), outgoing transactions (Withdrawals) or both. Useful e.g. if you want to keep an eye on your savings account and want to be alerted if any fund is removed without your knowledge This is available immediately for all types of notifications (currently email, newsfeed and url callback). Also a potential issue is now fixed which could result in missed transactions/notifications (happened when a new block was received which contains a transaction which has not been seen before as an individual tx message. Now whenever a new block is coming in the contained transactions are double-checked to make sure I don't miss a notification). I don't think this ever happened so far, though Have fun!
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
Herbert (OP)
|
|
February 25, 2012, 12:45:01 AM |
|
Hmpf. Something is going wrong on the production system with the new build, while at home everything runs perfectly. Rolled back to the previous release, so withdrawal notifications are currently NOT available.
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
Herbert (OP)
|
|
February 25, 2012, 01:20:20 PM |
|
Hmpf. Something is going wrong on the production system with the new build, while at home everything runs perfectly. Rolled back to the previous release, so withdrawal notifications are currently NOT available.
Issue solved in the meantime. I should have known not to deploy being tired in the middle of the night - forgot to start the new build of bitcoind and the old one does not provide all necessary parameters with the block notification...
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
stcupp
|
|
February 26, 2012, 06:16:53 AM |
|
Agents can now be configured to check for incoming transactions (Deposits), outgoing transactions (Withdrawals) or both. Useful e.g. if you want to keep an eye on your savings account and want to be alerted if any fund is removed without your knowledge Good idea..... bad thing is if you get that notification and you didn't send those coins your balance has probably been wiped
|
|
|
|
Vernon715
|
|
February 26, 2012, 05:31:37 PM |
|
Seems pretty useful.
|
|
|
|
mcorlett
Donator
Sr. Member
Offline
Activity: 308
Merit: 250
|
|
March 05, 2012, 09:32:13 PM |
|
At the moment the API development is still in early stages as there are/were few other topics I want to get done before (feed implementation was the main point, one more bigger task to do). So it will take probably around 2 more weeks until i have a first API ready for testing.
Can I get a status update on this?
|
|
|
|
Herbert (OP)
|
|
March 06, 2012, 07:47:56 PM |
|
At the moment the API development is still in early stages as there are/were few other topics I want to get done before (feed implementation was the main point, one more bigger task to do). So it will take probably around 2 more weeks until i have a first API ready for testing.
Can I get a status update on this? Sure! Due to some other (unrelated) stuff needing my attention I had less time than expected to work on the API. Status: The basics (Create/Read/Update/Delete) are working, but I am not decided yet on the authentication topic. But this should be solved soon and current plan is to have at least partial features available end of this week.
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
mcorlett
Donator
Sr. Member
Offline
Activity: 308
Merit: 250
|
|
March 07, 2012, 10:48:39 AM |
|
Sure! Due to some other (unrelated) stuff needing my attention I had less time than expected to work on the API. Status: The basics (Create/Read/Update/Delete) are working, but I am not decided yet on the authentication topic. But this should be solved soon and current plan is to have at least partial features available end of this week.
Looking forward to trying it out!
|
|
|
|
Herbert (OP)
|
|
March 11, 2012, 06:29:12 PM Last edit: March 13, 2012, 03:00:41 PM by Herbert |
|
Although I am not yet fully happy with it the API is now online . I will certainly add some more stuff (oAuth authentication, better response/error messages, ...) but the general idea will stay like it is now. The API follows the REST scheme, which means you can create, read, update and delete your agents and notification settings with standard http POST/GET/PUT/DELETE operations. Currently only basic authentication is in place, so you have to provide user and password with each request, which of course is quite inconvinient... Next thing to add is oAuth token-based authentication. Note: Be sure to always include the trailing slash in any url! Get information about all your agents:Browser: http://www.bitcoinmonitor.net/api/v1/agents/Commandline using curl: curl -i -u <user>:<password> http://www.bitcoinmonitor.net/api/v1/agents/ Create a new agent:You need to provide only 2 parameters: - name: The agents name
- watch_type: "1" for notification on withdrawal, "2" for notificatoin on deposits, "3" for both notifications
- addresses: (optional) list of addresses to watch, seperated by comma
curl -i -u <user>:<password> -X POST -d "name=new_agent&watch_type=2" http://www.bitcoinmonitor.net/api/v1/agents/ Change an existing agent:You need to know the ID of the agent (get it from the agent list). You can set: - name: The agents name
- watch_type: "1" for notification on withdrawal, "2" for notificatoin on deposits, "3" for both notifications
- addresses: list of addresses to watch, seperated by comma
curl -i -u <user>:<password> -X PUT -d "addresses=<bitcoin addresses seperated by comma>" http://www.bitcoinmonitor.net/api/v1/agent/<agent_ID>/ Delete an existing agent:You need to know the ID of the agent (get it from the agent list). curl -i -u <user>:<password> -X DELETE http://www.bitcoinmonitor.net/api/v1/agent/<agent_ID>/ Get notification settings for an agent:You need to know the ID of the agent you want to work with (get it from the agent list). You need to provide the notification type you want to access: curl -i -u <user>:<password> http://www.bitcoinmonitor.net/api/v1/agent/<agent_ID>/notification/<notification_type>/ Create new notification setting:You need to know the ID of the agent you want to work with (get it from the agent list). Required parameters: - req_confirmations: Confirmations required, 0 to 10
- email: email (required for type "email")
curl -i -u <user>:<password> -X POST -d "req_confirmations=0" http://www.bitcoinmonitor.net/api/v1/agent/<agent_ID>/notification/feed/ curl -i -u <user>:<password> -X POST -d "req_confirmations=0&email=me@here.com" http://www.bitcoinmonitor.net/api/v1/agent/<agent_ID>/notification/email/ curl -i -u <user>:<password> -X POST -d "req_confirmations=0&url=http://my.shop.com/payment_confirmation/" http://www.bitcoinmonitor.net/api/v1/agent/<agent_ID>/notification/url/ List bitcoinaddresses watched by agent:You need to know the ID of the agent you want to work with (get it from the agent list) curl -i -u <user>:<password> http://www.bitcoinmonitor.net/api/v1/agents/<agent_id>/address/ Add a bitcoinaddress to an agent:You need to provide 1 parameters: - address: address to watch
curl -i -u <user>:<password> -X POST -d "address=<address>" http://www.bitcoinmonitor.net/api/v1/agent/<agent_id>/address/ Remove a bitcoinaddress from an agent:No parameters as address is the ressource and part of url: curl -i -u <user>:<password> -X DELETE http://www.bitcoinmonitor.net/api/v1/agent/<agent_id>/address/<address> The agent_ID is guaranteed to never change once an agent is created. So if you have an agent set up it is safe to hardcode its ID in your code. As all this is still not matured I will not add API documentation to the site itself. As soon as i got some user feedback and added the missing stuff I will also extend the documentation.
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
mcorlett
Donator
Sr. Member
Offline
Activity: 308
Merit: 250
|
|
March 11, 2012, 07:34:30 PM |
|
Sent the promised 0.5 BTC. I will soon add two more convinience methods for directly adding/removing a bitcoin address from an agent. Right now this is not possible. When you change an existing agent you have to provide all addresses that it should watch as the provided addresses will replace the addresses currently configured.
This is what I'm really looking for before I launch this service I'm working on. You've got another bitcoin in your wallet once you implement this!
|
|
|
|
Herbert (OP)
|
|
March 13, 2012, 02:24:25 PM |
|
Thanks mcorlett 3 new methods are now available for adding/listing/removing addresses of an agent. I edited my previous post to include the new methods (at bottom) :-) Edit: Be prepared that the API will still change. You should not yet include it in production systems!
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
mcorlett
Donator
Sr. Member
Offline
Activity: 308
Merit: 250
|
|
March 13, 2012, 02:32:42 PM |
|
Add a bitcoinaddress to an agent:You need to provide 1 parameters: - address: address to watch
curl -i -u <user>:<password> -X POST -d "address=<address>" http://www.bitcoinmonitor.net/api/v1/agent/address/ You missed the ID parameter, this should be: Add a bitcoinaddress to an agent:You need to provide 1 parameters: - address: address to watch
curl -i -u <user>:<password> -X POST -d "address=<address>" http://www.bitcoinmonitor.net/api/v1/agent/<agent_id>/address/ (Also sent another bitcoin. I'm good to go now!)
|
|
|
|
Herbert (OP)
|
|
March 13, 2012, 03:03:32 PM |
|
You missed the ID parameter Fixed
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
Herbert (OP)
|
|
March 17, 2012, 08:11:22 PM |
|
Finished writing a zillion of unittests for the API and indeed found half a zillion bugs with them => Production site updated. The API itself has not changed, so everything should work like before. Still I dont want to make the API "official" until a better authentication mechanism (probably oAuth) is in place.
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
Herbert (OP)
|
|
March 19, 2012, 11:42:38 AM |
|
Bonus points if you can make it so that addresses not in use for N days are automatically removed.
I am thinking about different possibilities here. Remove watched address after - a specified time without transaction ("time-based expiration")
- a specified amount is received/exceeded ("amount-based expiration")
- any transaction is received ("one-shot")
I think the first two variants make sense for different scenarios, while for the one-shot variant I can not think of a good usecase. Opinions?
|
www.bitcoinmonitor.net - Free payment notification via email, newsfeed, xpmm/jabber, url callback and full API access! Send SMS with www.txt4coins.net! No registration, pay-per-use, full API access, bulk messages - All inclusive!
|
|
|
|