https://github.com/antoncoding/apifootball-adopter
external adopter to work with chain link node
https://github.com/antoncoding/apifootball-adopter
Last synced: 8 months ago
JSON representation
external adopter to work with chain link node
- Host: GitHub
- URL: https://github.com/antoncoding/apifootball-adopter
- Owner: antoncoding
- Created: 2019-09-28T17:31:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-13T09:11:41.000Z (over 6 years ago)
- Last Synced: 2025-04-02T16:51:18.687Z (11 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Football Match External Adopter
It's a sample football match external adopter to work with [Epuesta](https://github.com/antoncoding/epuesta).
Currently using two data sources:
* [API Football](https://apifootball.com)
* [Football Data Org](https://www.football-data.org/documentation/)
Already deployed on [heroku](https://apifootball-adopter.herokuapp.com/.)
## Usage
### Register API Key
If you want to run the external adopter on your own, you will have to register an API key at [APIFootball](https://apifootball.com/register/) and set it as your env variable.
### Bridge Creation
Create a new **Bridge** and connect your node to our heroku sample server (or the one you run on your own).

### Job Specification
Then you can use `apifootball` in your job specifications. This adopter require one variable which is `match_id`, your smart contract should pass that in.
```json
{
"initiators": [
{
"type": "RunLog",
"params": { "address": "YOUR_ORACLE_ADDRESS" }
}
],
"tasks": [
{
"type": "apifootball"
},
{
"type": "copy"
},
{
"type": "EthUint256"
},
{
"type": "EthTx"
}
]
}
```
*Examples of using this adopter can be fund at [Epuesta](https://github.com/antoncoding/epuesta).