Public | Automated Build

Last pushed: 14 days ago
Short Description
Tag your UiTdatabank events automatically with a region label, based on geo coordinates.
Full Description

Requirements

Still requires PHP 5. Not compatible with PHP 7.x.

Installation

You can use docker-compose to set up a compatible Docker container, then open a bash in it.

docker-compose up -d; docker-compose run --workdir=/usr/local/culturefeed_geotagger geotagger bash

Install dependencies with:

composer install

Usage

Step 1: Authenticate

First authenticate with a correct pair of consumer credentials.
--session=session.json stores the necessary info in a file session.json to use
in later commands.

./vendor/bin/cultuurnet-auth \
  --base-url=http://acc.uitid.be/uitid/rest \
  --consumer-key=*** \
  --consumer-secret=*** \
  --session=session.json \
  authenticate

You will be asked for your UiTID login name and password.

Use the right value for --base-url corresponding to the environment (acceptance
vs. production) you want to use.

Consult the Auth documentation if you want
to know more about the authenticate command.

Step 2: Search & tag

After you succesfully authenticated, search & tag:

./bin/culturefeed-geotagger.php \
  --session=session.json \
  --search-base-url=http://acc.uitid.be/uitid/rest/searchv2 \
  --entry-base-url=http://acc.uitid.be/uitid/rest/entry/test.rest.uitdatabank.be/api/v2 \
  tag;

Use the right values for --search-base-url and --entry-base-url corresponding to
the environment (acceptance vs. production) you want to use.

Docker Pull Command
Owner
2dotstwice

Comments (0)