3.26.0 • Published 7 years ago

next-ft-api-client v3.26.0

Weekly downloads
276
License
-
Repository
-
Last release
7 years ago

next-ft-api-client

No caching, no models, no complexity, none of that or any of that.

npm install --save next-ft-api-client
var api = require('next-ft-api-client');

.content(opts)

  • uuid - uuid (or array of uuids) of wanted content

If uuid is a string return a Promise that resolves with V3 Elasticsearch content, if uuid is an array, returns a Promise that resolves with an array of content.

.contentAnnotatedBy(opts)

  • uuid - uuid of thing wanted to select content by
  • count - number of items of content to return (default 10)

Returns with a Promise that resolves with an array of V2 content objects.

.lists(opts)

  • uuid - uuid of wanted list

Returns with a Promise that resolves with a list.

.organisations(opts)

  • uuid - uuid of wanted organisation

Returns with a Promise that resolves with an organisation.

.people(opts)

  • uuid - uuid of wanted person

Returns with a Promise that resolves with a person.

.search(opts)

  • filter - search filter. Either an array of fieldname, value or an Elasticsearch filter object.
  • fields - an array of source document fields to fetch
  • count - number of documents to return (default 10)
  • offset - number of documents to offset by (default 0)

Returns a promise that resolves an array of documents from the V3 Elasticsearch index.

.things(opts)

  • identifierValues - an array of source thing ids you wish to fetch
  • identifierType - property type of indetifier you wish to search on, such as prefLabel or idV1 (default 'idV1')
  • authority - the authority the terms belong too (defaults to FT-TME: http://api.ft.com/system/FT-TME)

Returns with a Promise that resolves with an array of things.

.mapping(uuid, taxonomy)

  • uuid - uuid of thing to map
  • taxonomy - taxonomy of thing to map

Returns with a Promise that resolves with the mapped concept.

.hui(opts)

  • model - string of the type of model you want returned (default 'content')
  • industry - uuid of an industry
  • position - uuid of a position
  • sector - uuid of a sector
  • country - uuid of a country
  • period - time period to use e.g last-1-day, last-1-week (default last-1-day)
  • count - number of UUIDs to return (default 10)

Returns with a Promise that resolves with a list.

.concordance(opts)

  • id - string of the id either TME (v1) or uuid (v2)

If it is passed a uuid it will concord to the v1 TME. If the id is not a uuid it will concord to the V2 uuid.

3.26.0

7 years ago

3.25.6

7 years ago

3.25.5

7 years ago

3.25.4

8 years ago

3.25.3

8 years ago

3.25.2

8 years ago

3.25.1

8 years ago

3.25.0

8 years ago

3.24.1

8 years ago

3.24.0

8 years ago

3.23.0

8 years ago

3.22.0

8 years ago

3.21.1

8 years ago

3.21.0

8 years ago

3.20.0

8 years ago

3.19.0

8 years ago

3.18.0

8 years ago

3.17.0

8 years ago

3.16.0

9 years ago

3.15.0

9 years ago

3.14.0

9 years ago

3.13.1

9 years ago

3.13.0

9 years ago

3.12.0

9 years ago

3.11.0

9 years ago

3.10.2

9 years ago

3.10.1

9 years ago

3.9.5

9 years ago

3.9.4

9 years ago

3.9.3

9 years ago

3.10.0

9 years ago

3.9.2

9 years ago

3.9.1

9 years ago

3.9.0

9 years ago

3.8.1

9 years ago

3.8.0

9 years ago

3.7.0

9 years ago

3.6.1

9 years ago

3.6.0

9 years ago

3.5.1

9 years ago

3.5.0

9 years ago

3.4.2

9 years ago

3.4.1

9 years ago

3.4.0

9 years ago

3.3.0

9 years ago

3.2.0

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago

3.0.0-beta.1

9 years ago

2.4.0

9 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.4.3

9 years ago

1.4.2

9 years ago

1.4.1

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago