What do you want to save?
Add Code snippet
New code examples
-
BASIC 2022-03-05 08:25:09
token em vbnet incluido no header da requisição
Const client_id = "XXXX.apps.googleusercontent.com" Const client_secret = "XXXXXXXXXXX" Const refresh_token = "XXXXXXXXXX" Const nome_aplicacao = "MinhaAplicacao" Const user_id = "[email protected]" Priv... Add solution -
Python 2022-02-16 01:05:03
colab erase recycle bin drive
# credit to Stack Overflow user in the source link from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from google.colab import auth from oauth2client.client import GoogleCredentials auth.authenticate_user() gauth = GoogleAuth() ga... Add solution -
Javascript 2022-02-02 03:46:43
google auth 2.0 passport
var GoogleStrategy = require( 'passport-google-oauth2' ).Strategy; passport.use(new GoogleStrategy({ clientID: GOOGLE_CLIENT_ID, clientSecret: GOOGLE_CLIENT_SECRET, callbackURL: "http://yourdomain:3000/auth/google/callback", ... Add solution -
Python 2022-02-01 08:15:05
google sheet python update
from oauth2client.service_account import ServiceAccountCredentials import gspread scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive', 'https://www.googleapis.com/auth/drive.file', 'https://www.googleapis.co... Add solution -
Python 2022-01-30 23:22:56
what are discord bots
#go to -- https://python.org #Download and install python #go to CMD and install -- pip install discord import discord from discord.ext import commands Token_1 = input("put your bot token here :") Prefix_1 = input("put the prefix for your... Add solution -
C# 2022-01-30 11:50:32
gcp resource managment c#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Google.Apis.Auth.OAuth2; using Google.Apis.CloudResourceManager.v1; using Google.Apis.Services; using Data = Google.Apis.CloudResourceManager.v1.Data; namespace OurFirs... Add solution -
Python 2022-01-23 05:11:36
Access Google Photo API with Python using google-api-python-client
from os.path import join, dirname from googleapiclient.discovery import build from httplib2 import Http from oauth2client import file, client, tools SCOPES = 'https://www.googleapis.com/auth/photoslibrary.readonly' store = file.Storage(join(dirname(__fil... Add solution -
Python 2022-01-22 16:40:38
Backend not found Request Method: GET Request URL: http://127.0.0.1:8000/oauth/login/google-oauth2/ Raised by: social_django.views.au
url(r'^social/', include('social.apps.django_app.urls', namespace='social')), url(r'^auth/', include('rest_framework_social_oauth2.urls')), Add solution -
PHP 2021-11-17 17:23:22
how to pass bearer token in swagger in laravel
'bearer_token' => [ // Unique name of security 'type' => 'apiKey', // Valid values are "basic", "apiKey" or "oauth2". 'description' => 'Enter token in format (Bearer <token>)', 'name' => 'Authorizat... Add solution -
Other 2021-11-16 22:40:13
Curl Shell Script To Purge Cache From Stackpath CDN
#!/usr/bin/env bash # Usage: # A simple shell script to purge Stackpath cdn cache using API and curl # command line. Tested on Ubuntu/Debian/RHEL/Fedora Linux and FreeBSD/macOS Unix # Syntax: # /path/to/stackpath.purge.sh https://your-domain/url # -----... Add solution