Skip to content

nfcg/euromillions_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EuroMillions API

A Euro Millions Lottery Results API

Web Server Rewrite Rules.

Apache.

RewriteRule ^api-euromillions-xml$ /euromillions.php?format=xml
RewriteRule ^api-euromillions-json$ /euromillions.php?format=json
RewriteRule ^api-euromillions$ /euromillions.php?format=txt

<Directory /Your-API-Folder>
   Header set Access-Control-Allow-Origin "*"
</Directory>

Nginx.

rewrite ^/api-euromillions-xml$ /euromillions.php?format=xml;
rewrite ^/api-euromillions-json$ /euromillions.php?format=json;
rewrite ^/api-euromillions$ /euromillions.php?format=txt;

location /Your-API-Folder) {		
   add_header 'Access-Control-Allow-Origin' '*';
}

Examples:

(Last)

https://nunofcguerreiro.com/api-euromillions

https://nunofcguerreiro.com/api-euromillions-xml

https://nunofcguerreiro.com/api-euromillions-json

(All)

https://nunofcguerreiro.com/api-euromillions?result=all

https://nunofcguerreiro.com/api-euromillions-xml?result=all

https://nunofcguerreiro.com/api-euromillions-json?result=all

(Date)

https://nunofcguerreiro.com/api-euromillions?result=2018-03-27

https://nunofcguerreiro.com/api-euromillions-xml?result=2018-03-27

https://nunofcguerreiro.com/api-euromillions-json?result=2018-03-27

(All Year)

https://nunofcguerreiro.com/api-euromillions?result=2018

https://nunofcguerreiro.com/api-euromillions-xml?result=2018

https://nunofcguerreiro.com/api-euromillions-json?result=2018

(All Year/Month)

https://nunofcguerreiro.com/api-euromillions?result=2018-03

https://nunofcguerreiro.com/api-euromillions-xml?result=2018-03

https://nunofcguerreiro.com/api-euromillions-json?result=2018-03

About

A Euro Millions Lottery Results API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages