texte = --089e0115fd3e24d05304edc9e364Content-Type: text/plain; charset=ISO-8859-1I just put this together for something after coming across this apitonight. The api seems to be pretty powerful - if you ever have need toexpand shortened links.API Docs: http://longurl.org/apiKnown services it expands urls from: http://api.longurl.org/v2/servicesI didn't add any error checking for incomplete data being returned.This snippet returns:url_linkurl_titlemeta-keywordsmeta-description[text]showWork=1[/text][text]showOutPut=1[/text][text]crlf=[unurl]%0D%0A[/unurl][/text][text]theLink=http://bit.ly/1dlSrIO[/text][text]url_title=[/text][text]meta-keywords=[/text][text]url_description=[/text][text]theOutPut=[tcpconnect host=api.longurl.org][tcpsend skipheader=T]GET/v2/expand?url=[url][theLink][/url]&title=1&meta-keywords=1&meta-description=1&format=jsonHTTP/1.0[!][/!][UnURL]%0D%0A[/Unurl]Host: api.longurl.org[UnURL]%0D%0A%0D%0A[/UnURL][UnURL]%0D%0A[/Unurl][!][/!][/tcpsend][/tcpconnect][/text][showif [showWork]=1] theOutPut: [theOutPut]
[/showif][table name=JSON_Convert&fields=from,to]{}"[/table][table name=JSON_ConvertLink&fields=from,to]%5C[/table][text]theOutPut2=[grepsearch=","&replace=|&ignorecase=T][theOutPut][/grep][/text][text]theOutPut3=[grepsearch=":"&replace=|&ignorecase=T][theOutPut2][/grep][/text][text]message_Clean=[convertcharstable=JSON_Convert][theOutPut3][/convertchars][/text][showif [showWork]=1] message_Clean: [message_Clean]
[/showif][ListWords Words=[url][message_Clean][/url]&Delimiters=|][showif [index]=2] [text]url_link=[convertcharstable=JSON_ConvertLink][word][/convertchars][/text][/showif][showif [index]=4] [text]url_title=[unurl][word][/unurl][/text][/showif][showif [index]=6] [text]meta-keywords=[convertcharstable=JSON_Convert][word][/convertchars][/text][/showif][showif [index]=8] [text]url_description=[convertcharstable=JSON_Convert][word][/convertchars][/text][/showif][/listwords][showif [showOutPut]=1]
[/showif]--089e0115fd3e24d05304edc9e364Content-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printable
I just put this together for something= after coming across this api tonight. The api seems to be pretty powerful =- if you ever have need to expand shortened links.
<=br>
API Docs:
http://longurl.org/api=a>
Known services it expands urls from:
http://api.longurl.org/v2/servicesI didn't add any error checking for incomplete data being returned=.
This snippet returns:
url_link
=
url_title
meta-keywords
meta-description
[text]showWork=3D1[/text]
[text]showOutPut=3D1[/text]
=
[text]crlf=3D[unurl]%0D%0A[/unurl][/text]
[text]theLink=3D
http://bit.ly/1dlSrIO[/text]=[text]url_title=3D[/text]
[text]meta-keywords=3D[/text]
[text]url_description=3D[/text]
[text]theOutPut=3D[tcpconnect host=3D
api.longurl.org]
[tcpsend skipheader=3DT]GET /v2/expan=d?url=3D[url][theLink][/url]&title=3D1&meta-keywords=3D1&meta-d=escription=3D1&format=3Djson HTTP/1.0[!]
[/!][UnURL]%0D%0A[/Unurl]Host:
api.longu=rl.org[UnURL]%0D%0A%0D%0A[/UnURL][UnURL]%0D%0A[/Unurl][!]
[/!][/tcps=end][/tcpconnect][/text]
[showif [showWork]=3D1]
=A0=A0=A0 theOut=Put: [theOutPut]<br /><br>
[/showif]
[table name=3DJSON_Convert&fields=3Dfrom,to]
{=A0=A0
}=A0=A0
"=A0=A0
[/table]
[table name=3DJS=ON_ConvertLink&fields=3Dfrom,to]
%5C=A0=A0=A0
[/table]
[t=ext]theOutPut2=3D[grep search=3D","&replace=3D|&ignorecas=e=3DT][theOutPut][/grep][/text]
[text]theOutPut3=3D[grep search=3D":"&replace=3D|&ignorec=ase=3DT][theOutPut2][/grep][/text]
[text]message_Clean=3D[convertcha=rs table=3DJSON_Convert][theOutPut3][/convertchars][/text]
[showif [=showWork]=3D1]
=A0=A0=A0 message_Clean: [message_Clean]<br>
[/showif]
=[ListWords Words=3D[url][message_Clean][/url]&Delimiters=3D|]
[showif [index]=3D2]
=A0=A0=A0 [text]url_link=3D[convertch=ars table=3DJSON_ConvertLink][word][/convertchars][/text]
[/showif]
[showif [index]=3D4]
=A0=A0=A0 [text]url_title=3D[unurl=][word][/unurl][/text]
[/showif]
[showif [index]=3D6]
=A0=A0==A0 [text]meta-keywords=3D[convertchars table=3DJSON_Convert][word][/conver=tchars][/text]
[/showif]
[showif [index]=3D8]
=A0=A0=A0 [text]url_description=3D[convertchars= table=3DJSON_Convert][word][/convertchars][/text]
[/showif]
=
[/listwords]
[showif [showOutPut]=3D1]
=A0=A0=A0 <stro=ng>url_link</strong>: [url_link]<br>
=A0=A0=A0 --<br>
=A0=A0=A0 <strong>url_title</strong>:= [url_title]<br>
=A0=A0=A0 --<br>
=A0=A0=A0 <strong>=;meta-keywords</strong>: [meta-keywords]<br>
=A0=A0=A0 --<=;br>
=A0=A0=A0 <strong>url_description</strong>: [url_des=cription]<br>
=A0=A0=A0 -----------------<br>
[/showif]
--089e0115fd3e24d05304edc9e364--
Associated Messages, from the most recent to the oldest:
|
- [WebDNA] Code - API - Long URL Expander (David Bastedo 2013)
|
--089e0115fd3e24d05304edc9e364Content-Type: text/plain; charset=ISO-8859-1I just put this together for something after coming across this apitonight. The api seems to be pretty powerful - if you ever have need toexpand shortened links.API Docs: http://longurl.org/apiKnown services it expands urls from: http://api.longurl.org/v2/servicesI didn't add any error checking for incomplete data being returned.This snippet returns:url_linkurl_titlemeta-keywordsmeta-description
[text]showWork=1[/text]
[text]showOutPut=1[/text]
[text]crlf=
[unurl]%0D%0A[/unurl][/text]
[text]theLink=http://bit.ly/1dlSrIO[/text]
[text]url_title=[/text]
[text]meta-keywords=[/text]
[text]url_description=[/text]
[text]theOutPut=[tcpconnect host=api.longurl.org][tcpsend skipheader=T]GET/v2/expand?url=
[url][theLink][/url]&title=1&meta-keywords=1&meta-description=1&format=jsonHTTP/1.0
[!][/!]
[unurl]%0D%0A[/Unurl]Host: api.longurl.org
[unurl]%0D%0A%0D%0A[/UnURL]
[unurl]%0D%0A[/Unurl]
[!][/!][/tcpsend][/tcpconnect][/text][showif [showWork]=1] theOutPut: [theOutPut]
[/showif][table name=JSON_Convert&fields=from,to]{}"[/table][table name=JSON_ConvertLink&fields=from,to]%5C[/table]
[text]theOutPut2=[grepsearch=","&replace=|&ignorecase=T][theOutPut][/grep][/text]
[text]theOutPut3=[grepsearch=":"&replace=|&ignorecase=T][theOutPut2][/grep][/text]
[text]message_Clean=[convertcharstable=JSON_Convert][theOutPut3][/convertchars][/text][showif [showWork]=1] message_Clean: [message_Clean]
[/showif][ListWords Words=
[url][message_Clean][/url]&Delimiters=|][showif [index]=2]
[text]url_link=[convertcharstable=JSON_ConvertLink][word][/convertchars][/text][/showif][showif [index]=4]
[text]url_title=
[unurl][word][/unurl][/text][/showif][showif [index]=6]
[text]meta-keywords=[convertcharstable=JSON_Convert][word][/convertchars][/text][/showif][showif [index]=8]
[text]url_description=[convertcharstable=JSON_Convert][word][/convertchars][/text][/showif][/listwords][showif [showOutPut]=1]
url_link: [url_link]
--
url_title: [url_title]
--
meta-keywords: [meta-keywords]
--
url_description: [url_description]
-----------------
[/showif]--089e0115fd3e24d05304edc9e364Content-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printable