What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

[WebDNA] API- continued - bit.ly statistics

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106437
interpreted = N
texte = I'm not sure if you folks use bit.ly - a url shortner - if you do, here's how to grab the data. If you don't next time you see a bit.ly add a "+" sign to the end of it for some data goodness. Google's shortner also provides data - but I haven't looked at it yet. For bit.ly, you will need an account and an api key. d. this one needs to be cleaned up a bit - like my others - I'll get to it, but here is the raw code [text]MyTestVariable=[TCPConnect host=api.bit.ly&port=80][TCPSend skipheader=T]GET /stats?version=2.0.1&shortUrl=[quotedURL]&login=XXXXX&apiKey=XXXXXX&format=xml HTTP/1.0[UnURL]%0D%0A[/Unurl]Host:api.bit.ly[UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend][/TCPConnect][/text] [xmlparse var=xml_var1][MyTestVariable][/xmlparse] MyTestVariable: [MyTestVariable]
[xmlnodes ref=xml_var1&path=named:bitly/results] [AddFields db=databases/reactions.db]bit_[name]=[/AddFields] [index]: [name]: [value]
[!]-- [replace db=databases/reactions.db&eqIDdatarq=[ID]]bit_[name]=[value][/replace] --[/!] [showif [index]=3] [xmlnodes] - - [name]: [value]
[showif [name]=nodeKeyVal] [xmlnodes] - - - [name]: [value]
[/xmlnodes] [/showif] [/xmlnodes]   [/showif] [/xmlnodes]

A
[xmlnodes ref=xml_var1&path=indexed:1/3/3/1] [name]: [value]
[/xmlnodes]

B
[xmlnodes ref=xml_var1&path=indexed:1/3/3/2/] [name]: [value]
[/xmlnodes]

C
[xmlnodes ref=xml_var1&path=indexed:1/3/3/2/2] [name]: [value]
[/xmlnodes] [WaitForFile file=FileToWaitFor.tx&timeout=1] Waiting 1 second, hopefully!
[/WaitForFile] Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] API- continued - bit.ly statistics (David Bastedo 2011)
I'm not sure if you folks use bit.ly - a url shortner - if you do, here's how to grab the data. If you don't next time you see a bit.ly add a "+" sign to the end of it for some data goodness. Google's shortner also provides data - but I haven't looked at it yet. For bit.ly, you will need an account and an api key. d. this one needs to be cleaned up a bit - like my others - I'll get to it, but here is the raw code [text]MyTestVariable=[TCPConnect host=api.bit.ly&port=80][TCPSend skipheader=T]GET /stats?version=2.0.1&shortUrl=[quotedURL]&login=XXXXX&apiKey=XXXXXX&format=xml HTTP/1.0[unurl]%0D%0A[/Unurl]Host:api.bit.ly[unurl]%0D%0A%0D%0A[/UnURL][/TCPSend][/TCPConnect][/text] [xmlparse var=xml_var1][MyTestVariable][/xmlparse] MyTestVariable: [MyTestVariable]
[xmlnodes ref=xml_var1&path=named:bitly/results] [AddFields db=databases/reactions.db]bit_[name]=[/AddFields] [index]: [name]: [value]
[!]-- [replace db=databases/reactions.db&eqIDdatarq=[ID]]bit_[name]=[value][/replace] --[/!] [showif [index]=3] [xmlnodes] - - [name]: [value]
[showif [name]=nodeKeyVal] [xmlnodes] - - - [name]: [value]
[/xmlnodes] [/showif] [/xmlnodes]   [/showif] [/xmlnodes]

A
[xmlnodes ref=xml_var1&path=indexed:1/3/3/1] [name]: [value]
[/xmlnodes]

B
[xmlnodes ref=xml_var1&path=indexed:1/3/3/2/] [name]: [value]
[/xmlnodes]

C
[xmlnodes ref=xml_var1&path=indexed:1/3/3/2/2] [name]: [value]
[/xmlnodes] [WaitForFile file=FileToWaitFor.tx&timeout=1] Waiting 1 second, hopefully!
[/WaitForFile] David Bastedo

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Search in 2 or more catalogs (1997) Grouping search fields, etc. (1997) syntax question, not in online refernce (1997) Cart doesn't interpret tag! (1997) Database Options (1997) How do you hide [math]stuff[/math] (1997) Shopping Cart Problem (1998) Nested tags count question (1997) [addlineitems] (1997) Roundup function? (1997) WebDNA Solutions --> Date format suggestions (1998) Send massmail (2000) Country & Ship-to address & other fields ? (1997) Emailer help....! (1997) Adding Items to Cart (2003) Wierd thing in ViewOrder.tpl (1999) multiple databases (1997) Waitfor(ever) (2002) Error Messages Returned to User (1997)