Calendar API (Google Apps Script) Project not found and cannot be used for API calls - api

I am using Google Apps Scripts following this tutorial.
When I execute the code I get the following error:
Project 719340009941 is not found and cannot be used for API calls. If
it is recently created, enable Calendar API
I went to Resources -> Advanced Google Services and I enabled Calendar. Then I clicked on the link of Cloud Platform project. I could not directly search for calendar API, I had to create a project first (which I called Calendar). I searched for Calendar API and enabled it.
When I am on the calendar API page it tells me: API enabled. I donĀ“t understand why the script gives me the error.
If I visit the project link (which the error provides) I get the following error
The API "calendar.googleapis.com" doesn't exist or you don't have permission to access it

I don't know anything about the different API versions or what a G suite domain is, but if it helps anyone else I resolved this by going to the URL below and hitting the enable button:
https://console.developers.google.com/apis/library/calendar-json.googleapis.com

Related

New Google Identity Service Migration with PHP Client library

I got a warning from google stating "your client ID(s) use the legacy Google Sign-In web solution".
And we are asked to migrate to the new Google Identity Services.
We do not use any JS library to sign-in. We have a Google PHP Client library for authentication and authorization.
Google still flagged our client Id and advised to migrate before March 31 2023.
Will this depreciation really affect us?
Can someone help me with the exact changes to be done on our end?
The team has a system that can detect which projects are calling the endpoint used by the deprecated JavaScript sign-in library. They send out emails to the owners of that project. From what I understand from the team they don't know for a fact that you are using it they can just see that your project id is hitting it.
The Google APIs PHP client library does not hit this end point so that part of your code is not the source.
I would just double check around your team and make sure nothing else may be using the old JavaScript library. If you cant find anything then the easiest solution is to just wait once google starts rolling out the deprecation at the end of March someone will come find you if something breaks.

Google Photos REST API with Angular/Java/dotNet

I am trying to connect to google photo in angular and been searching since last two days about google photos REST api but couldn't find any useful example.
Could somebody help me with this on how to use google photos api in angular. an example would be great if I get it working I will creating sample and put it on github or others to look at.
Another thing I am trying is to connect api without any user interaction. I have tried playgrounds but its prompting to authorize access as well. Idea is to build ionic app that can connect to my google photos without needing me to authenticate access to it with my id and secret.
my app would be in angular(ionic) or java(android) so would prefer example (if any) in those platform but ok with dotnet or php as well. Won't be able to use library in dotnet or php.
Thanks
Bhavesh

NoCommerce 3.80 External Login Plugins

I am new to NopCommerce as well as C# MVC. I am working on NopCommerce 3.80.
As per Instructions I downloaded Google+ Plugin from NopCommerce Official site and Installed it and also configured it.
But when i click on Login with google button, it shows an error of
Google OAuth 2 authorization - Error: redirect_uri_mismatch
Can anybody help me to solve this ?
And another Question is do I have to create a Class Library for the External Authentication as like Facebook(Inbuilt Plugin) ??
The redirect URI that you entered in Google developer console must exactly match the location you are trying to authenticate from this includes the port number I can see in your message.
I don't know enough about nop to tell you if you could use the Google .net client library for your application.
I got the solution.
I haven't given correct callback URL that's why it's showing redirect_uri_mismatch error.
the URL I added is
"localhost:15536/plugins/externalauthGoogle/logincallback/"

How to check which errors I have in my Google API project?

I'd like to use this plugin with my Jekyll site to show page views for each post/ page. So I installed the plugin and set up a service account for Google data API. The site is generating but I get no data from Google Analytics for my page views (it shows 0). On the projects overview page in Google Developer Console I see that I'm getting errors. But I can't figure out how to check these errors?
Is there any way to see what these errors are?
How can I check if Google API is working at all on my site?
The problem was with permissions when you add a new user to Google Analytics account. I had only Read & Analyze, and it should be all four (Manage Users, Edit, etc.).

Google PHP API - (403) Access Not Configured

Im using the Google PHP API Client http://code.google.com/p/google-api-php-client/ to retrieve data from the google API.
Logging in thru OAuth2 and fetch user information works like a charm, but when I'm attempting to access the goole analytics api i get this 403 code error every time. Hundreds of users with the same problem forgot to activate the Google Analytics API in the service settings, or simply provided incorrect credentials (client_id & client_secret). I've tried to enable/disable the Google Analytics multiple times, and logging in/out from my google accounts, but no result.
Anyone that has any pointers for me?
(Remember, the OAuth procedure works, since I'm getting both an access_token and refresh_token)
I'm using the simple.php example in the class examples folder...
I'm working on Drive myself and understand the issue. I've been having some troubles understanding Google and their PHP api somewhat. I've finally got it to work with some clarification of examples found around the internet.
Your problem sounds like you didn't set your scope to Google analytics but, please be clear in the steps you've taken as well as the code you've tried using.
The error could be as simple as forgetting this line in your oAuth callback file:
$client->addScope(Google_Service_Analytics::ANALYTICS);
To something complex as understanding if you need a full paid account to access information from Google about your Analytics (not included as free like Google+ and Google drive).