Reduce size of Google & Facebook php SDK - facebook-graph-api

I'm currently working on a plugin for wordpress, in which I have to use Google Analytics Reporting API and Facebook's Graph API.
Now everything is working fine with their respective php SDKs, the only problem is both are very large and not suitable for a plugin.
I'm only using Google Analytics Reporting API and oAuth from google sdk and some functions of Graph API.
What can I do to reduce size of the sdk?
Thanks!

Related

Issues Enabling Google Ads API on Google Cloud Platform Console

Every time I try to enable Google Ads API on the google cloud platform i receive the following error:
API solution not found with service name: googleads.googleapis.com
I've set up an ads manager account under the same email and generated an API access token. I've tried setting it up under different emails and in different browsers and I have even tried using incognito mode to see if that would resolve the issue per the instructions of other threads. I've also created the oauth2 credentials for the project I'm trying to give access to the Google Ads api.
I really just need to enable the Google Ads API. Any help would be much appreciated.
For me just disabling ad-blocker fixed the issue.
After paying for Google support, this is what i found:
Disable all Google Chrome extensions
Start Google Chrome in Incognito Mode
Sign into Google Cloud Console and add the api from the api library.
It's that simple.

Confusion with Google Cloud Platform and Google Cloud Storage API's

I am new with google cloud platform and trying to get started. I am interested in using Google Cloud storage.
Following this link:
datastore reference I can see available client libraries (c++ is not one of them)
Now there is google api c++ client:
google api c++ client
and it has "Google Cloud Datastore API" as one of the service api's available.
And then there is this link:
https://developers.google.com/api-client-library/cpp/
which just says:
"The Google APIs C++ Client Library is no longer available. Thank you for your interest."
That got me a bit confused. As I would like to use cloud DataStore via native c++ api.
If you're willing to do quite a bit of work you can interact with the REST API directly using whatever technology you like. You'll need to do understand how to generate an OAUTH2 credential and how the OAUTH2 scopes etc. work. You can then create an OAUTH2 cookie for the Authorization header. Once you're on top of the that the Google APIs helps you navigate the APIs and work out the expected requests and responses:
https://cloud.google.com/datastore/docs/reference/data/rest/
The REST guide lets you try out calls yourself too.

Get WSDL URL or data of google analytics

I want to get WSDL URL of google analytics.
I search on net but it is all about embedd API.
1) Is it possible to get WSDL URL of my Google analytics dashboard?
OR
2)Fetch data of google analytics into any RDBMS?
WSDL is SOAP. Google Core Reporting API is REST. Embed API is a Javascript API client (which is based on the REST API).
So 1) there is no WSDL for GA, but 2) you do not need it. The linked documentation has examples, and Google offers API client libraries for different programming languages (and the API itself is language agnostic).

Google Apps Calendar Resource API in PHP

I implemented a php application that creates events in google calendar. But i need also to create resources, and i found the documentation for Google Apps Calendar Resource API
My first question is: where can I download the API files.
And second: i can use this in PHP? Because in the examples that they provide, they use only .NET and Python.
Thank you!
This API uses an older Google APIs technology stack called GData. There is a GData PHP client library built into the Zend framework, but it doesn't support OAuth2 and doesn't include support for this particular API. You're only option is to construct the OAuth2 tokens, XML body, and HTTP requests yourself using the documentation as a guide.

Is there a way to get reporting on Google Voice usage?

Is there a way I can leverage the Google APIs to get a report on Google Voice usage in my domain? We just turned it on and wanted to see if any of our users were using the service.
Google Voice is not a core service within Google Apps and does not fall under Google's SLA. There are also no official APIs that allow access to Google Voice data. There is however at least one unofficial Python library to interact with Google Voice programatically.