Fetches data from APIs and handles responses. Use when interacting with external APIs or retrieving data from web services.
Before you start, make sure to pick the python environment in which you want to run the code. You can run/install dependencies using my '.venv' environment which is located at "C:\ClaudeCode.venv"
You need to make python API calls to fetch data from the following URLs using async httpx: ["https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/dim_customer.csv","https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/dim_store.csv","https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/dim_date.csv","https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/dim_product.csv","https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/fact_sales.csv","https://raw.githubusercontent.com/anshlambagit/AnshLambaYoutube/refs/heads/main/DBT_Masterclass/fact_returns.csv"]
After fetching the data, you need to create a directory having name with current date and time in the format "YYYY-MM-DD_HH-MM-SS" and save the fetched data as CSV files in that directory. The location of the directory should be ".claude/skills/fetchAPI/data/".
You need to create a log directory at ".claude/skills/fetchAPI/logs/" with name current date and time in the format "YYYY-MM-DD_HH-MM-SS" and save a log file in that directory with the name "fetchAPI.log". The log file should contain information about the API calls made, including what APIs called, what were successful and what were not, and any errors encountered during the process.3b:["$","$L3f",null,{"content":"$40","frontMatter":{"name":"fetchAPI","description":"Fetches data from APIs and handles responses. Use when interacting with external APIs or retrieving data from web services."}}]