webdevmatics / GoogleCalendarApi

27 stars 44 forks source link

I am trying to add a new event in google calendar #1

Open bogdancostin opened 7 years ago

bogdancostin commented 7 years ago

I am trying to add a new event in google calendar but I have an error Error: redirect_uri_mismatch I create a subdomain like this redirect_uri=http://gcalendar.me/api/oauth If I try without subdomain it works but else not. What can I do? Thanks.

webdevmatics commented 7 years ago

Have you added this url in google developer console?

On Monday, March 6, 2017, bogdancostin notifications@github.com wrote:

I am trying to add a new event in google calendar but I have an error Error: redirect_uri_mismatch I create a subdomain like this redirect_uri=http://gcalendar.me/api/oauth If I try without subdomain it works but else not. What can I do? Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/webdevmatics/GoogleCalendarApi/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ATstWBPzsqtIeaLcrtUfdF2sG8hgOxL6ks5rjAHSgaJpZM4MUHJK .

bogdancostin commented 7 years ago

Have you added this url in google developer console?

Where I can add this? in the domain verification?

When am I trying to add domain says

"Verify ownership Before you register http://gcalendar.me/ you must first verify ownership. You can do this in the Google Search Console.

CANCEL"

webdevmatics commented 7 years ago

Go to credentials, look for option that says something like allow domain.

On Monday, March 6, 2017, bogdancostin notifications@github.com wrote:

Have you added this url in google developer console?

Where I can add this? in the domain verification?

When am I trying to add domain says

"Verify ownership Before you register http://gcalendar.me/ you must first verify ownership. You can do this in the Google Search Console.

CANCEL"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/webdevmatics/GoogleCalendarApi/issues/1#issuecomment-284419624, or mute the thread https://github.com/notifications/unsubscribe-auth/ATstWHr0WaGWd_duQCP0JReqoBB3W0NEks5rjB9ZgaJpZM4MUHJK .

bogdancostin commented 7 years ago

I added my site on the server and i have the same error. What can I do? On verification domain I have this two Allowed domains : http://smartcompany.example.co/ and smartcompany.example.co/ error400

Please tell me how can I fix this?

webdevmatics commented 7 years ago

not in domain verification tab.On credentials tab under client Ids select id you are using then under restrictions -> authorized redirect uris put your domain there.

On Tue, Mar 7, 2017 at 6:23 PM, bogdancostin notifications@github.com wrote:

I added my site on the server and i have the same error. What can I do? On verification domain I have this two Allowed domains : http://smartcompany.example.co/ and smartcompany.example.co/ [image: error400] https://cloud.githubusercontent.com/assets/25580680/23656664/489f07aa-0343-11e7-8990-0bb5df2f8b16.png

Please tell me how can I fix this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/webdevmatics/GoogleCalendarApi/issues/1#issuecomment-284710373, or mute the thread https://github.com/notifications/unsubscribe-auth/ATstWDHwehp39AIQuFEt7QEEHuHuwe_Hks5rjU_KgaJpZM4MUHJK .

bogdancostin commented 7 years ago

But i don't have restrictions -> authorized redirect . I make a print screen to see. credentials Thanks and sorry

webdevmatics commented 7 years ago

Create new credential -> oAuth client ID->Web application (not other)-> now you will see fields now use this newly created credentials (json) in your project.

On Wed, Mar 8, 2017 at 5:37 PM, bogdancostin notifications@github.com wrote:

But i don't have restrictions -> authorized redirect . I make a print screen to see. [image: credentials] https://cloud.githubusercontent.com/assets/25580680/23703003/6166ddd0-0406-11e7-8f87-1b0eee87a1a7.png Thanks and sorry

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/webdevmatics/GoogleCalendarApi/issues/1#issuecomment-285021474, or mute the thread https://github.com/notifications/unsubscribe-auth/ATstWHe_ZcjTuAjJXAyGV71I-82i9A9Jks5rjpZigaJpZM4MUHJK .

asmabnouir commented 4 years ago

@webdevmatics Hi , I had the same error and i did everything you said , i tried to put as uris ("https://localhost:8000","https://localhost:8000/gcalendar","https://localhost:8000/oauthCallback") but still the same error. It's really important for me can you help me with that plz .