Skip to content

emmajxli/mediaPrediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title

This project is a Node.js application for fetching data from the Dash Hudson API and generating a CSV file based on the retrieved data. It utilizes environment variables for authentication and configuration. The application fetches media data from Dash Hudson API, extracts relevant information such as media ID, URL, and engagement predictions, and writes this data into a CSV file. The CSV file can be used for further analysis or reporting purposes.

Table of Contents

Prerequisites

Before running this project, ensure that you have the following installed:

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/project.git
  1. Install dependencies:
npm install

Usage

Environment Setup

  1. Create a .env file in the root directory of the project.
  2. Add your environment variables to the .env file:
BEARER_TOKEN='your_bearer_token_here'
BRAND_ID=your_brand_id_here

Please refer to this public doc for how to generate bearer token and where to find the brand ID in Dash Hudson. Replace your_bearer_token_here and your_brand_id_here with your actual values.

Running the Code

node app.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published