![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Gapy is a thin service account client for Google Analytics.
First you need to create either a service account <https://developers.google.com/accounts/docs/OAuth2ServiceAccount>
_ or client ID in your
Google API Console <https://code.google.com/apis/console>
_. If you're
authenticating as a service account you'll need to download your private key.
If you're authenticating as a web or installed application you'll need to
download your client secrets file. Use the Google Developers Console <https://console.developers.google.com/>
_ to do this:
Then just create a gapy client and start querying.
storage_path
is the location where you want gapy to keep the storage.db
file that it will generate the first time it runs... code :: python
import gapy.client
# For a service account
client = gapy.client.from_private_key(
"your account name",
private_key="your private key",
storage_path="path/to/storage.db")
# For a web or installed application
client = gapy.client.from_secrets_file(
"/path/to/client_secrets.json",
storage_path="/path/to/storage.db")
)
reach_data = client.query.get("12345",
datetime(2012, 1, 1),
datetime(2012, 2, 2),
['ga:visits', 'ga:visitors'],
'ga:date')
This library is a layer over the Google Python API. If you wish to work on it, it may be necessary to consult the Google Analytics API documentation <https://developers.google.com/resources/api-libraries/documentation/analytics/v3/python/latest/analytics_v3.data.ga.html>
_.
FAQs
Painless Google Analytics
We found that gapy 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.