2.0.0-alpha.31 • Published 7 months ago

@ulixee/client v2.0.0-alpha.31

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

#Install the Ulixee CLI and your Schema(s)

  1. Install the cli:

    $ npm install -g @ulixee/cli
  2. Run cli to initiate setup:

    $ ulixee
    • You’ll be prompted to create a keypair and lockfile. These both need to go into your deployment/project.
  3. Choose a Payment option:
    1. Pay with argons directly using a sidechain
    2. Use a payment onramp like "Stripe for Ulixee" (provided by the Data Liberation Foundation)
  4. Install datasets

#Install this project

$ pip install -r requirements.txt

#Start Querying for Data

  • Integrate data queries into your app. Your dataset schema has the available fields to retrieve and the parameters to retrieve data.
  • For each query, you will specify a “view of truth”. For example, restaurant.reservations might support opentable.com, reserve.com and a few others.

         const Ulixee = require('@ulixee/client');
    
         (async function run() {
           try {
             const ulixee = new Ulixee({ lockfile: 'ulixee-lock.json' });
             const request = await ulixee.query('encyclopedia.entry:wikipedia.com', {
               params: { name: 'Blockchain', page: 1 },
               fields: `
                 title
                 url
                 extract
                 contributors {
                   username
                 }
               `,
               maxTimeInCache: '10s'
             });
    
             console.log(JSON.stringify(request, null, 2));
           } catch (err) {
             console.log(err);
           }
         })();
2.0.0-alpha.31

7 months ago

2.0.0-alpha.30

9 months ago

2.0.0-alpha.29

12 months ago

2.0.0-alpha.28

1 year ago

2.0.0-alpha.27

1 year ago

2.0.0-alpha.26

1 year ago

2.0.0-alpha.25

2 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.1

6 years ago

0.2.2

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

7 years ago