Last active
December 23, 2015 02:19
-
-
Save displayn/6566067 to your computer and use it in GitHub Desktop.
Revisions
-
Gurken revised this gist
Sep 15, 2013 . 1 changed file with 21 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,12 @@ Find your current Location (longitude/latitude) [Hamburg](http://maps.googleapis ###Step 3: Paste the longitude and latitude from the Google-Json in your own post ####Query Fuel-Types: ``` http://fuel-companion-s.chartcloud.net/api/v1/fuels.xml ``` ####Request Data with a Post: Useragent from the App: @@ -30,7 +36,7 @@ with following form data: </thead> <tr> <td>Fuels</td> <td>Super,Diesel, Super E10, SuperPlus,Autogas,Biodiesel,Lkw-Diesel,DieselPlus</td> <td>Diesel</td> </tr> <tr> @@ -61,8 +67,21 @@ The response will be in xml. Nice work guys :) ##Clever-Tanken.de #####Request Data ``` https://secure.clever-tanken.de/3rdpty/iphone-mswag-umkreis_pw.asp?veraltete=1&l=0.00000&user=devel1&r=5&sprit= alle&pwd=mswag_11&b=0.00000&securepw=xxxxxxxx ``` **Attention** I have no idea how they generate the "securepw"-stuff. Possible stuff like date or time… I dont't know. ##mehr-Tanken.de #####Request Data.. oh jesus it is a get-Request: ``` http://mehr-tanken.de/list?result=xml&city=Hamburg&brand_id=0&fuel_id=2&radius=10&interval=0&show_prices=0&mod=default&order=date @@ -109,17 +128,6 @@ Oh yeah xml have a look at the mts-values in the xml! Carried Together 14. September 2013 -
Gurken revised this gist
Sep 14, 2013 . 1 changed file with 36 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,12 @@ #Tankstellen "API's" ##TankenApp ###Step 1: Find your current Location (longitude/latitude) [Hamburg](http://maps.googleapis.com/maps/api/geocode/json?address=Hamburg%20&sensor=false&language=de&components=country:DE) ###Step 3: Paste the longitude and latitude from the Google-Json in your own post ####Request Data with a Post: @@ -69,6 +67,39 @@ Nice work guys :) ``` http://mehr-tanken.de/list?result=xml&city=Hamburg&brand_id=0&fuel_id=2&radius=10&interval=0&show_prices=0&mod=default&order=date ``` Change the fuel-type with: ``` &fuel_id=intvaluefromlist ``` <table> <thead> <td>Name</td> <td>Value</td> </thead> <tr> <td>Super (E10)</td> <td>1</td> </tr> <tr> <td>Super (E5)</td> <td>2</td> </tr> <tr> <td>Super Plus</td> <td>3</td> </tr> <tr> <td>Diesel</td> <td>4</td> </tr> <tr> <td>Autogas (LPG)</td> <td>12</td> </tr> </table> You can also add a nice stuff like: ``` &device=iphone&os=8.1.3 @@ -91,4 +122,4 @@ https://secure.clever-tanken.de/3rdpty/iphone-mswag-umkreis_pw.asp?veraltete=1&l I have no idea how they generate the "securepw"-stuff. Possible stuff like date or time… I dont't know. Carried Together 15. September 2013 -
Gurken revised this gist
Sep 14, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Useragent from the App: KW/TankenApp/1.1/iPad5,1/6.1.10/de_DE ``` Request-url: ``` http://fuel-companion-s.chartcloud.net/api/v1/search ``` -
Gurken revised this gist
Sep 14, 2013 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,9 +25,9 @@ with following form data: <table> <thead> <td>Input Name</td> <td>Value</td> <td>Example Value</td> </thead> <tr> <td>Fuels</td> @@ -46,13 +46,13 @@ with following form data: </tr> <tr> <td>price_age</td> <td>age in Hours?</td> <td>12</td> </tr> <tr> <td>radius</td> <td>radius in km</td> <td>10</td> </tr> </table> -
Gurken created this gist
Sep 14, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,93 @@ #Tankstellen "API's" ##TankenApp (from Kupferwerk GmbH.. published by Deutsche Telekom GmbH) ###Step 1: Find your current Location (longitude/latitude) [Hamburg](http://maps.googleapis.com/maps/api/geocode/json?address=Hamburg%20&sensor=false&language=de&components=country:DE) ###Step 2: Paste the longitude and latitude from the Google-Json ###Step 3: ####Request Data with a Post: Useragent from the App: ``` KW/TankenApp/1.1/iPad5,1/6.1.10/de_DE ``` ``` http://fuel-companion-s.chartcloud.net/api/v1/search ``` with following form data: <table> <thead> <td>Input Name</td> <td>Value</td> <td>Example</td> </thead> <tr> <td>Fuels</td> <td>Diesel, Benzin, Superplus,Bio-Diesel</td> <td>Diesel</td> </tr> <tr> <td>lng</td> <td>longitude</td> <td>10.123492</td> </tr> <tr> <td>lat</td> <td>latitude</td> <td>53.717145</td> </tr> <tr> <td>price_age</td> <td>12</td> <td>age in Hours?</td> </tr> <tr> <td>radius</td> <td>10</td> <td>radius in km</td> </tr> </table> ####Response The response will be in xml. Nice work guys :) ##Clever-Tanken.de #####Request Data.. oh jesus it is a get-Request: ``` http://mehr-tanken.de/list?result=xml&city=Hamburg&brand_id=0&fuel_id=2&radius=10&interval=0&show_prices=0&mod=default&order=date ``` You can also add a nice stuff like: ``` &device=iphone&os=8.1.3 ``` ####Response Oh yeah xml have a look at the mts-values in the xml! ##mehr-Tanken.de #####Request Data ``` https://secure.clever-tanken.de/3rdpty/iphone-mswag-umkreis_pw.asp?veraltete=1&l=0.00000&user=devel1&r=5&sprit= alle&pwd=mswag_11&b=0.00000&securepw=xxxxxxxx ``` **Attention** I have no idea how they generate the "securepw"-stuff. Possible stuff like date or time… I dont't know. Carried Together 14. September 2013