Re: [WebDNA] TCPconnect and Bitcoin rate

This WebDNA talk-list message is from

2017


It keeps the original formatting.
numero = 113876
interpreted = N
texte = 1476 --Apple-Mail=_5B58A3C4-CD8B-403F-9A09-7B752CC2E905 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Yariv, Here's a starting point for you... Had to use [middle] to get rid of some garbage, which was strange. = Other than that, it should be pretty straight forward. > On Dec 17, 2017, at 3:54 AM, Office wrote: >=20 > For the last 20 years i never had to receive data from elsewhere till = today. > I need to ask an API for the bitcoin rate > i wanted to use the TCPconnect for this but the sample is dead ? : >=20 > http://www.webdna.us/page.dna?numero=3D264 = >=20 > What i need is a piece of code to get the USD =E2=80=9Crate" out of = this thing (this number: 19,681.9725) so i can calculate the price of = the product to be divided to this to be able to show the current price = in Bitcoin at my store > = {"USD":{"code":"USD","symbol":"$","rate":"19,681.9725","description":"= United States Dollar","rate_float":19681.9725} > This is where it update every second (or less) > https://api.coindesk.com/v1/bpi/currentprice.json = >=20 > Or any other way to get a rate into my page :-) >=20 > Yours, >=20 > Yariv Nachshon > http://www.plonter.co.il >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: = support@webdna.us --Apple-Mail=_5B58A3C4-CD8B-403F-9A09-7B752CC2E905 Content-Type: multipart/mixed; boundary="Apple-Mail=_EAC565FB-A12F-446D-B59F-9133D932BE1E" --Apple-Mail=_EAC565FB-A12F-446D-B59F-9133D932BE1E Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Yariv,

Here's a starting point for you...

Had to use [middle] to get rid of some garbage, which was strange.  Other than that, it should be pretty straight forward.


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us --Apple-Mail=_EAC565FB-A12F-446D-B59F-9133D932BE1E Content-Disposition: attachment; filename=bitcoin_price.dna Content-Type: application/octet-stream; x-unix-mode=0644; name="bitcoin_price.dna" Content-Transfer-Encoding: 7bit  Bitcoin Price Getter  [!] [/!][text]IDF=[/text][!] [/!][text]DBFile=bitcoin.db[/text][!] [/!][text]GETSTR=/v1/bpi/currentprice.json[/text][!] [/!][text]HOSTTLD=api.coindesk.com[/text][!] [/!][TCPConnect host=[HOSTTLD]&port=443&ssl=T[showif [Version]>8.0.2]&timeout=2000[/showif]][!] [/!][text]JSONObject={[middle StartAfter={&EndBefore=}][TCPSend skipheader=T]GET [GETSTR] HTTP/1.1[UnURL]%0D%0A[/UnURL][!] [/!]Accept: text/html[UnURL]%0D%0A[/UnURL][!] [/!]Accept-Encoding: none[UnURL]%0D%0A[/UnURL][!] [/!]Accept-Language: en-us[UnURL]%0D%0A[/UnURL][!] [/!]Connection: close[UnURL]%0D%0A[/UnURL][!] [/!]Host: [HOSTTLD][UnURL]%0D%0A[/UnURL][!] [/!]User-Agent: Mozilla/5.0 (WebDNA [version])[UnURL]%0D%0A[/UnURL][!] [/!][UnURL]%0D%0A[/UnURL][!] [/!][/TCPSend][/Middle]}[/text][!] [/!][/TCPConnect][!] [/!][JSONstore db=[DBFile]] [JSONObject] [/JSONstore]

Bitcoin Price Getter

GET: https://[HOSTTLD][GETSTR]

Returned JSON Object (prettied)



Database

 [listfields db=[DBFile]][showif [IDF]=][text]IDF=[fieldname][/text][/showif][/listfields]  [search db=[DBFile]&ne[IDF]data=[blank]&as[IDF]sort=1][founditems] [listfields db=[DBFile]][hideif [index]=1] [/hideif] [/ListFields] [/founditems][/search] 
[fieldname]
[fieldname][interpret][[fieldname]][/interpret]
--Apple-Mail=_EAC565FB-A12F-446D-B59F-9133D932BE1E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8


On Dec 17, 2017, at 3:54 AM, Office <yariv.n@gmail.com> = wrote:

For the last 20 years = i never had to receive data from elsewhere till today.
I = need to ask an API for the bitcoin rate
i wanted to = use the TCPconnect for this but the sample is dead ? :


What i need is a piece = of code to get the USD =E2=80=9Crate" out of this thing (this number: = 19,681.9725) so i can calculate the price of the product to be divided = to this to be able to show the current price in Bitcoin at my = store
{"USD":{"code":"USD","symbol":"&#36;","rate":"19,681.9725",="description":"United States Dollar","rate_float":19681.9725}
This is where it update every second (or = less)

Or any other way to get = a rate into my page :-)

Yours,

Yariv Nachshon







--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

= --Apple-Mail=_EAC565FB-A12F-446D-B59F-9133D932BE1E-- --Apple-Mail=_5B58A3C4-CD8B-403F-9A09-7B752CC2E905-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] TCPconnect and Bitcoin rate (Stuart Tremain 2019)
  2. Re: [WebDNA] TCPconnect and Bitcoin rate (Michael Davis 2019)
  3. Re: [WebDNA] TCPconnect and Bitcoin rate (Stuart Tremain 2017)
  4. Re: [WebDNA] TCPconnect and Bitcoin rate (Brian Harrington 2017)
  5. Re: [WebDNA] TCPconnect and Bitcoin rate (Stuart Tremain 2017)
  6. Re: [WebDNA] TCPconnect and Bitcoin rate (Stuart Tremain 2017)
  7. Re: [WebDNA] TCPconnect and Bitcoin rate (Tom Duke 2017)
  8. RE: [WebDNA] TCPconnect and Bitcoin rate ("Terry Nair" 2017)
  9. Re: [WebDNA] TCPconnect and Bitcoin rate (Stuart Tremain 2017)
  10. Re: [WebDNA] TCPconnect and Bitcoin rate (Michael Davis 2017)
  11. Re: [WebDNA] TCPconnect and Bitcoin rate (Stuart Tremain 2017)
  12. Re: [WebDNA] TCPconnect and Bitcoin rate (Michael Davis 2017)
  13. Re: [WebDNA] TCPconnect and Bitcoin rate (Office 2017)
  14. Re: [WebDNA] TCPconnect and Bitcoin rate (Stuart Tremain 2017)
  15. [WebDNA] TCPconnect and Bitcoin rate (Yariv Nachshon 2017)
  16. Re: [WebDNA] TCPconnect and Bitcoin rate (Lawrence Banahan 2017)
  17. [WebDNA] TCPconnect and Bitcoin rate (Office 2017)
1476 --Apple-Mail=_5B58A3C4-CD8B-403F-9A09-7B752CC2E905 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Yariv, Here's a starting point for you... Had to use [middle] to get rid of some garbage, which was strange. = Other than that, it should be pretty straight forward. > On Dec 17, 2017, at 3:54 AM, Office wrote: >=20 > For the last 20 years i never had to receive data from elsewhere till = today. > I need to ask an API for the bitcoin rate > i wanted to use the TCPconnect for this but the sample is dead ? : >=20 > http://www.webdna.us/page.dna?numero=3D264 = >=20 > What i need is a piece of code to get the USD =E2=80=9Crate" out of = this thing (this number: 19,681.9725) so i can calculate the price of = the product to be divided to this to be able to show the current price = in Bitcoin at my store > = {"USD":{"code":"USD","symbol":"$","rate":"19,681.9725","description":"= United States Dollar","rate_float":19681.9725} > This is where it update every second (or less) > https://api.coindesk.com/v1/bpi/currentprice.json = >=20 > Or any other way to get a rate into my page :-) >=20 > Yours, >=20 > Yariv Nachshon > http://www.plonter.co.il >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: = support@webdna.us --Apple-Mail=_5B58A3C4-CD8B-403F-9A09-7B752CC2E905 Content-Type: multipart/mixed; boundary="Apple-Mail=_EAC565FB-A12F-446D-B59F-9133D932BE1E" --Apple-Mail=_EAC565FB-A12F-446D-B59F-9133D932BE1E Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Yariv,

Here's a starting point for you...

Had to use [middle] to get rid of some garbage, which was strange.  Other than that, it should be pretty straight forward.


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us --Apple-Mail=_EAC565FB-A12F-446D-B59F-9133D932BE1E Content-Disposition: attachment; filename=bitcoin_price.dna Content-Type: application/octet-stream; x-unix-mode=0644; name="bitcoin_price.dna" Content-Transfer-Encoding: 7bit  Bitcoin Price Getter  [!] [/!][text]IDF=[/text][!] [/!][text]DBFile=bitcoin.db[/text][!] [/!][text]GETSTR=/v1/bpi/currentprice.json[/text][!] [/!][text]HOSTTLD=api.coindesk.com[/text][!] [/!][TCPConnect host=[HOSTTLD]&port=443&ssl=T[showif [version]>8.0.2]&timeout=2000[/showif]][!] [/!][text]JSONObject={[middle StartAfter={&EndBefore=}][TCPSend skipheader=T]GET [GETSTR] HTTP/1.1[unurl]%0D%0A[/UnURL][!] [/!]Accept: text/html[unurl]%0D%0A[/UnURL][!] [/!]Accept-Encoding: none[unurl]%0D%0A[/UnURL][!] [/!]Accept-Language: en-us[unurl]%0D%0A[/UnURL][!] [/!]Connection: close[unurl]%0D%0A[/UnURL][!] [/!]Host: [HOSTTLD][unurl]%0D%0A[/UnURL][!] [/!]User-Agent: Mozilla/5.0 (WebDNA [version])[unurl]%0D%0A[/UnURL][!] [/!][unurl]%0D%0A[/UnURL][!] [/!][/TCPSend][/Middle]}[/text][!] [/!][/TCPConnect][!] [/!][JSONstore db=[DBFile]] [JSONObject] [/JSONstore]

Bitcoin Price Getter

GET: https://[HOSTTLD][GETSTR]

Returned JSON Object (prettied)



Database

 [listfields db=[DBFile]][showif [IDF]=][text]IDF=[fieldname][/text][/showif][/listfields]  [search db=[DBFile]&ne[IDF]data=[blank]&as[IDF]sort=1][founditems] [listfields db=[DBFile]][hideif [index]=1] [/hideif] [/ListFields] [/founditems][/search] 
[fieldname]
[fieldname][interpret][[fieldname]][/interpret]
--Apple-Mail=_EAC565FB-A12F-446D-B59F-9133D932BE1E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8


On Dec 17, 2017, at 3:54 AM, Office <yariv.n@gmail.com> = wrote:

For the last 20 years = i never had to receive data from elsewhere till today.
I = need to ask an API for the bitcoin rate
i wanted to = use the TCPconnect for this but the sample is dead ? :


What i need is a piece = of code to get the USD =E2=80=9Crate" out of this thing (this number: = 19,681.9725) so i can calculate the price of the product to be divided = to this to be able to show the current price in Bitcoin at my = store
{"USD":{"code":"USD","symbol":"&#36;","rate":"19,681.9725",="description":"United States Dollar","rate_float":19681.9725}
This is where it update every second (or = less)

Or any other way to get = a rate into my page :-)

Yours,

Yariv Nachshon







--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

= --Apple-Mail=_EAC565FB-A12F-446D-B59F-9133D932BE1E-- --Apple-Mail=_5B58A3C4-CD8B-403F-9A09-7B752CC2E905-- . Michael Davis

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:

Almost a there but..bye bye NetCloak (1997) [SearchString] problem with [search] context (1997) no time stamp & different times from emailer (1998) Javascript and Pull Down menus (1999) RE: [taxRate] [TaxTotal] ? (1997) carts on MacOS X Server (2000) Add a field to the error log? (1997) WebTen and WebCat (1997) Minor Bug(?) with [Capitalize] context (1999) [date] problem with %d%m%Y (1998) Help! WebCat2 bug (1997) [GetMIMEHeader] does not work (under Linux?) (2000) Now you see it now you donīt (1997) syntax question, not in online refernce (1997) [BULK] [WebDNA] port from mime headers? (2017) Quit revisited (1997) Buying sans cart (1997) Explorer 3.0/ Access Denied! (1997) RAM crash (1998) docs for WebCatalog2 (1997)