@ulixee/cli v2.0.0-alpha.28
About Ulixee
Ulixee is a data platform allowing easy integration of all the world's live datasets into your apps.
You are connecting to a decentralized network run by computers around the world to help harvest and translate data from websites and databases. The Cli will get you started to integrate live data into your project.
A CLI's Purpose
This CLI helps you setup a new project and connect datasets. It will also help you connect to a Sidechain to perform transactional operations or create new addresses.
Commands:
- refresh options -- Refresh public node info
- sidechain:balance options -- Get the balance associated with this address
- sidechain:transfer options -- Transfer centagons from the given keyring address to the provided hex address
- add options -- Install a dataset (alias: install)
- onramp:setup options -- Re-run the onramp setup
- serve port - Run a REST bridge for the Ulixee network
If you don't run any commands, you will be prompted with a wizard that can perform the above commands as well as a few others.
REST Bridge
The bridge provides access to the Ulixee network via simple Http calls.
To launch the rest bridge, run the following from your project directory containing a ulixee-lock.json file.
$ ulixee serve 1818
Data queries can be performed using simple REST commands with JSON bodies.
curl
curl -X POST \
http://localhost:1818/Data.query \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"datasetUri": "restaurants.availability:resy.com",
"fields": "localDateTime",
"params": {
"localDate":"2019-10-23",
"slug":"cities/atl/miller-union"
}
}'
python
import requests
url = "http://localhost:1818/Data.query"
query_json = {
'datasetUri': 'restaurants.availability:resy.com',
'params': {
'localDate': '2019-11-01',
'slug': 'cities/sf/uma-casa',
'seatCount': 2
},
'fields': 'localDateTime,bookingUrl',
'maxTimeInCacheSecs': 30
}
response = requests.post(query_url, json=query_json)
print response.json()
2 months ago
3 months ago
4 months ago
8 months ago
10 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago