PTV API signature generator
Hacked together a method for the API signature generation only
If you are after a full fledged swagger client implementation see ptv-api npm
Requirements
First obtain a dev id and key from PTV here
If using in the browser - Please consider that you will need to support the crypto nodejs module. A polyfil exists here
Example usage
const ptvSig = const BASE_URL = 'http://timetableapi.ptv.vic.gov.au'const DEV_ID = 'REPLACE'const DEV_KEY = 'REPLACE1-1111-1111-1111-111111111111' /*** Search for stops based on search term* @param*/const getStopsBySearchTerm = {return }