Skip to content

Instantly share code, notes, and snippets.

View AkhileshHN's full-sized avatar

Akhilesh HN AkhileshHN

  • Kasetti Technologies Pvt Ltd
  • Bengaluru
View GitHub Profile
public with sharing class StirngCheck{
public static void stirngCheckMethod(){
String valNull = null;
String vallEmpty = '';
String vallWhiteSpace = ' ';
String vallAbc = 'abc';
//Example 1 Similarities between isEmpty and isBlank
System.debug(String.isEmpty(valNull)); // true
let createFolderOptions = {
method: "POST",
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
kind : "drive#file",
mimeType : "application/vnd.google-apps.folder",
name : "API created Sub Folder",
@AkhileshHN
AkhileshHN / GoogleRESTAPICreatingFolder.js
Created June 30, 2022 03:35
Creating Folder in google using Google REST API
let createFolderOptions = {
method: "POST",
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
mimeType: "application/vnd.google-apps.folder",
name: "My new google drive folder!",
}),