All notable changes to this project will be documented in this file.
- Changed BWResources self.id mapping (where resource names are keys and ids are values) to self.names (where ids are keys and names are values). Made a number of changes that follow from this.
- Added project ID to rules that are being uploaded, in accordance with a change to the Brandwatch API.
- Moduel Imports - All modules (e.g bwproject, bwresources, etc...) have been moved into a single package called
bwapi
. This helps to keep things organised and avoid collisions with any other packages you happen to using. All code dependent on bwapi will need to be updated, such that modules are imported from thebwapi
package. See the following examples for more specific guidance:must be updated tofrom bwproject import BWProject, ... from bwresources import BWQueries, BWGroups, ... from bwdata import BWData ...
Importing modules can be changed fromfrom bwapi.bwproject import BWProject, ... from bwapi.bwresources import BWQueries, BWGroups, ... from bwapi.bwdata import BWData ...
to the following without breaking existing functionalityimport bwproject
import bwapi.bwproject as bwproject
- Authentication -
authenticate.py
script changed to command line programbwapi-authenticate
added to the PATHchanged to$ ./authenticate.py
$ bwapi-authenticate Please enter your Brandwatch credentials below Username: example@example Password: Authenticating user: example@example Writing access token for user: example@example Writing access token for user: example@example Success! Access token: 00000000-0000-0000-0000-000000000000