Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
This Python package, makes communication between Microsoft Power BI REST API and a client easier.
Read this in other languages: Español.
pip install pwerpy
It's mandatory to have these in order to successfully use pwerpy
, otherwise, you won't be able to make any request to Power BI REST API:
Once you have your client ID and both workspace username and password, you're ready to go!
To get your Azure Active Directory tenant ID (tenant id)
from pwerpy import powerpy
domain_name = 'YOUR_DOMAIN_NAME'
tenant_id = powerpy.get_tenant_id(domain_name)
To get your authentication access token, in order to request your Bearer authorization token
from pwerpy import powerpy
tenant_id = 'YOUR_TENANT_ID'
client_id = 'YOUR_CLIENT_ID'
user = 'YOUR_WORKSPACE_USERNAME'
pwd = 'YOUR_WORKSPACE_PASSWORD'
access_token = powerpy.get_access_token(tenant_id, client_id, user, pwd)
To get your Bearer authorization token
from pwerpy import powerpy
access_token = 'YOUR_ACCESS_TOKEN'
auth = powerpy.get_authorization_token(access_token)
To make a GET request
from pwerpy import powerpy
url = 'YOUR_POWER_BI_REST_API_URL'
auth = 'YOUR_BEARER_AUTHORIZATION_TOKEN'
response = powerpy.get(url, auth)
To make a POST request
from pwerpy import powerpy
url = 'YOUR_POWER_BI_REST_API_URL'
auth = 'YOUR_BEARER_AUTHORIZATION_TOKEN'
response = powerpy.post(url, auth)
These are the essential functions in order to communicate with Power BI REST API successfully.
Pwerpy is licensed under the MIT license.
Copyright © 2022, Fernando Assef (4ssef)
FAQs
Easier communication between Microsoft Power BI REST API and a client
We found that pwerpy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.