MariiaChernysh / Voluum-API

Authorization via Voluum API. Getting the token. Making a basic report request. Transfer to GCS and BigQuery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Voluum-API

Voluum API documentation can be found here.

This repository contains the whole ETL pipeline for Voluum data. Starting with making API-requests, thereafter data is transformed and enriched directly in main files. 2 Volum API-request schemas for Python are provided: Countries Report and Campaigns Report.

To write a proper API-request for Voluum data Chrome Developers tools are used.

image (Pic was provided by the Voluum Support Team, many thanks to Katarzyna)

Load the report you need -> visit Network section in Chrome Developers tools -> choose the Name "report? blah-blah-blah" -> Copy -> Copy as cURL(bash). At this point you'll have the exact request for the report you have created on a dashboard. To convert it to Python request use Postman, this website or any other suitable service.

The provided batch files (task_LTD.bat & ...) are responsible for running the scripts and sending the data directly to GCS storage. Afterwards they run the other BigQuery.py script, which transfers data from GCS to BigQuery.

Please be aware, that for the proper work of BigQuery.py you need to setup environmental variable with GOOGLE_APPLICATION_CREDENTIALS to get access from the local PC to your project. To create json file with service account key credentials visit: https://cloud.google.com/docs/authentication/production.

About

Authorization via Voluum API. Getting the token. Making a basic report request. Transfer to GCS and BigQuery


Languages

Language:Python 93.7%Language:Shell 4.1%Language:Batchfile 2.2%