<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>9 Mar 2015 12:00:32 Z</lastBuildDate><pubDate>10 Nov 2014 10:57:00 Z</pubDate><description>Hi, I have used windev since 1998 , first version is 4.1 and now I use 17. And in the future I upgrade it to 20.&#13;
&#13;
But question is that have some acknowledge about JSON and Windev ?&#13;
&#13;
Can I make JSON call by Windev or must I use WebDev ?&#13;
&#13;
In thise adress there is exampl code made by python: &#13;
https://github.com/VeikkausOy/sport-games-robot&#13;
&#13;
How can I make this by Windev:&#13;
&#13;
----------------------------------------------&#13;
# subject structure that must be&#13;
headers = {&#13;
    'Content-type':'application/json',&#13;
    'Accept':'application/json',&#13;
    'X-ESA-API-Key':'ROBOT'&#13;
}&#13;
&#13;
# Login to Veikkaus.fi site, return session-object&#13;
def login (username, password):&#13;
    s = requests.Session()&#13;
    login_req = {"type":"STANDARD_LOGIN","login":username,"password":password}&#13;
    r = s.post("https://www.veikkaus.fi/api/v1/sessions", data=json.dumps(login_req), headers=headers)&#13;
    if r.status_code == 200:&#13;
        return s&#13;
    else:&#13;
        raise Exception("Authentication failed", r.status_code)&#13;
&#13;
# Main funktio.&#13;
# 1. Login&#13;
# 2. Get 'Moniveto' targets ( when logged person ) ( 'Moniveto' is betting system in Veikkaus )&#13;
# 3. Prints answer&#13;
def main():&#13;
    s = login('esimerkki','salasana')&#13;
    r = s.get('https://www.veikkaus.fi/api/v1/sport-games/draws?game-names=MULTISCORE', headers=headers)&#13;
    print r.text&#13;
&#13;
------------------------------------------------------&#13;
&#13;
Best regards&#13;
&#13;
Lasse Sandström&#13;
&#13;
user in Finland</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp</link><title>JSON - code in WinDev ?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>g.tahar</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-50851/read.awp</comments><pubDate>9 Mar 2015 12:00:32 Z</pubDate><description>vous pouvez utiliser ce code par exemple&#13;
SI HTTPRequête("http://api.openweathermap.org/data/2.5/forecast?lat=36.71&amp;lon=8.25") =…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-50851/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-50851/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp">JSON - code in WinDev ?</source><title>Re: JSON - code in WinDev ?</title></item><item><author>santtu55</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48943/read.awp</comments><pubDate>13 Nov 2014 21:29:40 Z</pubDate><description>Hi, ok&#13;
&#13;
I have now tried several ways and I think that this is impossbile to do with Windev.&#13;
&#13;
So I forget this.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48943/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48943/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp">JSON - code in WinDev ?</source><title>Re: JSON - code in WinDev ?</title></item><item><author>santtu55</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48909/read.awp</comments><pubDate>11 Nov 2014 23:36:08 Z</pubDate><description>All searc must accept cookies!&#13;
&#13;
This search draw results from Veikkaus.fi:&#13;
&#13;
$ curl --compressed \&#13;
 -H 'Accept: application/…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48909/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48909/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp">JSON - code in WinDev ?</source><title>Re: JSON - code in WinDev ?</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48903/read.awp</comments><pubDate>11 Nov 2014 20:12:02 Z</pubDate><description>Hi Lasse&#13;
&#13;
REST is the communication protocol&#13;
JSON is the format of the text file that is sent using this &#13;
communication prot…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48903/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48903/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp">JSON - code in WinDev ?</source><title>Re: JSON - code in WinDev ?</title></item><item><author>santtu55</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48901/read.awp</comments><pubDate>11 Nov 2014 15:14:42 Z</pubDate><description>Hi, Veikkaus use REST-interface fron JSON.&#13;
&#13;
If this information needed before answering ?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48901/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48901/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp">JSON - code in WinDev ?</source><title>Re: JSON - code in WinDev ?</title></item><item><author>santtu55</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48898/read.awp</comments><pubDate>11 Nov 2014 13:59:59 Z</pubDate><description>Hi,&#13;
&#13;
I don't know where my answer is gone, but here is it again.&#13;
&#13;
I am trying to get data/info about betting objects in 'Vei…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48898/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48898/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp">JSON - code in WinDev ?</source><title>Re: JSON - code in WinDev ?</title></item><item><author>santtu55</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48891/read.awp</comments><pubDate>11 Nov 2014 12:14:18 Z</pubDate><description>Full details , and examples is shown in "https://github.com/VeikkausOy/sport-games-robot" but these examples&#13;
are in Python , th…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48891/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48891/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp">JSON - code in WinDev ?</source><title>Re: JSON - code in WinDev ?</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48888/read.awp</comments><pubDate>11 Nov 2014 11:55:22 Z</pubDate><description>Hi Lasse&#13;
&#13;
JSON is only a text formatting set of rules, like XML. It has  nothing &#13;
to do with the communication mechanism.&#13;
&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48888/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48888/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp">JSON - code in WinDev ?</source><title>Re: JSON - code in WinDev ?</title></item><item><author>ok2bwell</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48881/read.awp</comments><pubDate>11 Nov 2014 08:42:42 Z</pubDate><description>I would love to know as well</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48881/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48881/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp">JSON - code in WinDev ?</source><title>Re: JSON - code in WinDev ?</title></item><item><author>santtu55</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48879/read.awp</comments><pubDate>10 Nov 2014 16:05:47 Z</pubDate><description>Hi, again, can I use HTTPRequest to do this:&#13;
&#13;
HTTPRequest( ...&#13;
	"https://www.veikkaus.fi/", ...&#13;
	"", ...&#13;
	"Content-type:app…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48879/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev-48879/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48864-json-code-windev/read.awp">JSON - code in WinDev ?</source><title>Re: JSON - code in WinDev ?</title></item></channel></rss>
