2.0.0-alpha.28 • Published 2 months ago

@ulixee/client v2.0.0-alpha.28

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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.28

2 months ago

2.0.0-alpha.27

3 months ago

2.0.0-alpha.26

4 months ago

2.0.0-alpha.25

5 months ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago