Sunday, September 19, 2021

How to get credentials of Google Workspace API with pythen

 when we use Google Workspace API ,first login account get credentials .

https://developers.google.com/sheets/api/quickstart/python

https://github.com/googleworkspace/python-samples/blob/master/sheets/quickstart/quickstart.py

Run code,then login google account








show messenger

The authentication flow has completed. You may close this window.




We get token.json in Working directory




If you get error,your credentials is not right.

error: Client secrets must be for a web or installed app

Read google developer

https://developers.google.com/workspace/guides/create-credentials 



Tuesday, August 31, 2021

cordova build : FAILURE: Build failed with an exception.

  Run "cordova build"



Failed to install the following Android SDK packages as some licences have not been accepted.

 platforms;android-29 Android SDK Platform 29



Go to SDK manager


 uncheck the version 31 and check the 29





Failed to find 'android' command de path to valid SDK directory. Cordova

 Failed to find 'android' command de path to valid SDK directory.

Add ANDROID_HOME to  System variables

C:\Users\{username}\AppData\Local\Android


add to  path


%ANDROID_HOME%\tools\;%ANDROID_HOME%\platform-tools\;


Saturday, May 15, 2021

WAMP CORS error

 



CORS error




Wampserver 403 Forbidden

 You don't have permission to access this resource.


website is normail with localhost  .


but website is Forbidden with Extranet.


C:\wamp64\bin\apache\apache2.4.46\conf



Find httpd.conf file
# onlineoffline tag - don't remove Require local



change
#   onlineoffline tag - don't remove
Require all granted



httpd-vhosts.conf

Require local change to "Require all granted"



 Windows server + Wamp +php +mysql

Wednesday, May 5, 2021

"You cannot delete a plugin while it is active on the main site" wordpress plugins

 "You cannot delete a plugin while it is active on the main site" wordpress plugins can't delete.


Purge All Caches