{"id":1341,"date":"2024-09-11T09:09:21","date_gmt":"2024-09-11T08:09:21","guid":{"rendered":"https:\/\/france.magicsoftware.com\/blog\/?p=1341"},"modified":"2025-03-04T17:47:07","modified_gmt":"2025-03-04T16:47:07","slug":"google-spreadsheet-magic-xpi","status":"publish","type":"post","link":"https:\/\/france.magicsoftware.com\/blog\/magic-xpi\/google-spreadsheet-magic-xpi\/","title":{"rendered":"Google SpreadSheet &#8211; Magic xpi"},"content":{"rendered":"\n<p class=\"has-medium-font-size\"><strong>Goal<\/strong> : How to handle Google SpreadSheet with Magic xpi using REST Google API<\/p>\n\n\n\n<p>1\/ Connect to Google Developer Console (https:\/\/console.cloud.google.com) with your gmail account<\/p>\n\n\n\n<p>2\/ Create a new project \u00ab\u00a0SpreadSheet\u00a0\u00bb<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"278\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets2-1024x278.png\" alt=\"\" class=\"wp-image-1355\" style=\"width:820px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets2-1024x278.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets2-300x81.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets2-768x209.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets2-1536x417.png 1536w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets2.png 1823w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>3\/ Choose APIs &amp; services =&gt; Library and choose Sheets and enable it<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"420\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets4-1-1024x420.png\" alt=\"\" class=\"wp-image-1363\" style=\"width:819px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets4-1-1024x420.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets4-1-300x123.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets4-1-768x315.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets4-1-1536x631.png 1536w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets4-1.png 1885w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"392\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5-1024x392.png\" alt=\"\" class=\"wp-image-1366\" style=\"width:823px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5-1024x392.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5-300x115.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5-768x294.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5.png 1509w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4\/ Choose credentials Define an OAuth client ID with type Desktop Application <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"366\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5_-1024x366.png\" alt=\"\" class=\"wp-image-1390\" style=\"width:677px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5_-1024x366.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5_-300x107.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5_-768x274.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5_.png 1192w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You need to set the scope to : <\/p>\n\n\n\n<p><strong>https:\/\/www.googleapis.com\/auth\/spreadsheets and https:\/\/www.googleapis.com\/auth\/drive<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"445\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5__-1024x445.png\" alt=\"\" class=\"wp-image-1393\" style=\"width:623px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5__-1024x445.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5__-300x130.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5__-768x334.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5__-1536x667.png 1536w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets5__.png 1902w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"311\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets6-1024x311.png\" alt=\"\" class=\"wp-image-1371\" style=\"width:829px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets6-1024x311.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets6-300x91.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets6-768x233.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets6-1536x467.png 1536w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets6.png 1885w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Keep the client Id and ClientSecret and the call Back URL (http:\/\/localhost)<\/p>\n\n\n\n<p>5\/ Check with Postman that you can interact with a Google Sheet.<\/p>\n\n\n\n<p>Fill all the relevant informations to get the Access Token and execute a Put operation<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"867\" height=\"917\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets8.png\" alt=\"\" class=\"wp-image-1377\" style=\"width:338px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets8.png 867w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets8-284x300.png 284w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets8-768x812.png 768w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"628\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets9-1024x628.png\" alt=\"\" class=\"wp-image-1380\" style=\"width:495px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets9-1024x628.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets9-300x184.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets9-768x471.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets9.png 1211w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>6\/ Define a REST Client resource in a magic xpi project<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"603\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets10-1-1024x603.png\" alt=\"\" class=\"wp-image-1387\" style=\"width:590px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets10-1-1024x603.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets10-1-300x177.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets10-1-768x452.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets10-1.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Call Back URL must be in our case :   <strong>http:\/\/localhost<\/strong><\/p>\n\n\n\n<p>Fill the Client id and Client Secret.<\/p>\n\n\n\n<p>Set the Authorization URL to :  https:\/\/accounts.google.com\/o\/oauth2\/auth<\/p>\n\n\n\n<p>Set the Access Token URL to : https:\/\/oauth2.googleapis.com\/token<\/p>\n\n\n\n<p>Set the scope to : <strong>https:\/\/www.googleapis.com\/auth\/spreadsheets https:\/\/www.googleapis.com\/auth\/drive<\/strong><\/p>\n\n\n\n<p>Click on Access Token to acquire the Token<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"432\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets11.png\" alt=\"\" class=\"wp-image-1400\" style=\"width:497px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets11.png 829w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets11-300x156.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets11-768x400.png 768w\" sizes=\"auto, (max-width: 829px) 100vw, 829px\" \/><\/figure>\n\n\n\n<p>Sign with you gmail account then you will be redirected to a page and choose go to Spreadsheet at the bottom<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"641\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets12.png\" alt=\"\" class=\"wp-image-1403\" style=\"width:380px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets12.png 1010w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets12-300x190.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets12-768x487.png 768w\" sizes=\"auto, (max-width: 1010px) 100vw, 1010px\" \/><\/figure>\n\n\n\n<p>And confirm the access<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"669\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets13-1024x669.png\" alt=\"\" class=\"wp-image-1407\" style=\"width:540px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets13-1024x669.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets13-300x196.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets13-768x502.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets13.png 1263w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"223\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets14-1024x223.png\" alt=\"\" class=\"wp-image-1409\" style=\"width:591px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets14-1024x223.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets14-300x65.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets14-768x167.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets14.png 1475w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"689\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets15-1024x689.png\" alt=\"\" class=\"wp-image-1411\" style=\"width:468px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets15-1024x689.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets15-300x202.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets15-768x516.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets15.png 1160w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Define Paths that you want to interact with the API (use {} to use parameter)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"577\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets17-1024x577.png\" alt=\"\" class=\"wp-image-1421\" style=\"width:635px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets17-1024x577.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets17-300x169.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets17-768x433.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets17.png 1374w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You can use Google Workspace explorer ( Sheet API) to test and to get the different paths (https:\/\/developers.google.com\/workspace\/)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"616\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets16-1024x616.png\" alt=\"\" class=\"wp-image-1415\" style=\"width:531px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets16-1024x616.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets16-300x180.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets16-768x462.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets16-1536x923.png 1536w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets16.png 1567w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Google Sheet API specification can be found at https:\/\/sheets.googleapis.com\/$discovery\/rest?version=v4<\/p>\n\n\n\n<p>7\/ To get a Google SpreadSheet, Drag and Drop a REST Client connector<\/p>\n\n\n\n<p>Configure the connector to GET a SpreadSheet<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"596\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets18-1024x596.png\" alt=\"\" class=\"wp-image-1425\" style=\"width:531px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets18-1024x596.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets18-300x174.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets18-768x447.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets18.png 1145w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Set {endpath} parameter to 1KSrbWrBezXI437ZgdJAozE8tssdj6OtRnJyimsBwRAw\/values\/A2%3AB (<strong>&lt;sheetid&gt;\/values\/&lt;range&gt;<\/strong>)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"440\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets19-1024x440.png\" alt=\"\" class=\"wp-image-1426\" style=\"width:628px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets19-1024x440.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets19-300x129.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets19-768x330.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets19.png 1443w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>After flow execution, you should receive the result in a a json format<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"525\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets20-1024x525.png\" alt=\"\" class=\"wp-image-1429\" style=\"width:640px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets20-1024x525.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets20-300x154.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets20-768x394.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets20-1536x787.png 1536w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets20.png 1734w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>8\/ To send data to a Google SpreadSheet<\/p>\n\n\n\n<p>Build a json request in the format below (use a datamapper for this step)<\/p>\n\n\n\n<p>{\u00ab\u00a0values\u00a0\u00bb: [[\u00ab\u00a0ALEM\u00a0\u00bb,\u00a0\u00bbJOHN\u00a0\u00bb],[\u00ab\u00a0DAVID\u00a0\u00bb,\u00a0\u00bbISNER\u00a0\u00bb],[\u00ab\u00a0MAHER\u00a0\u00bb,\u00a0\u00bbMETHENY\u00a0\u00bb],[\u00ab\u00a0ROSS\u00a0\u00bb,\u00a0\u00bbHARRIS\u00a0\u00bb]]}<\/p>\n\n\n\n<p>Configure the REST Client connector for PUT operation and set {upload} parameter to 1KSrbWrBezXI437ZgdJAozE8tssdj6OtRnJyimsBwRAw\/values\/A2%3AB (<strong>&lt;sheetid&gt;\/values\/&lt;range&gt;<\/strong>)<\/p>\n\n\n\n<p>Pass the Blob Json request to DataBlob<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"552\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets22-1024x552.png\" alt=\"\" class=\"wp-image-1438\" style=\"width:653px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets22-1024x552.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets22-300x162.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets22-768x414.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets22.png 1216w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You should receive this type of JSON response<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets21-1024x768.png\" alt=\"\" class=\"wp-image-1435\" style=\"width:562px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets21-1024x768.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets21-300x225.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets21-768x576.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets21.png 1196w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"434\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets23.png\" alt=\"\" class=\"wp-image-1443\" style=\"width:461px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets23.png 935w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets23-300x139.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets23-768x356.png 768w\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" \/><\/figure>\n\n\n\n<p>9\/ To clear data, do a <strong>POST<\/strong> with this parameter in the URL<\/p>\n\n\n\n<p><strong>https:\/\/sheets.googleapis.com\/v4\/spreadsheets\/&lt;SpreadSheetId&gt;\/values\/&lt;Range&gt;:clear<\/strong><\/p>\n\n\n\n<p>with empty json {}<\/p>\n\n\n\n<p>example fill the {endpath} parameter with : 1KSrbWrBezXI437ZgdJAozE8tssdj6OtRnJyimsBwRAw\/values\/A4%3AB:clear<\/p>\n\n\n\n<p>and leave the DataBlob empty<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"651\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets25.png\" alt=\"\" class=\"wp-image-1466\" style=\"width:391px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets25.png 779w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets25-300x251.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets25-768x642.png 768w\" sizes=\"auto, (max-width: 779px) 100vw, 779px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"596\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets24-1024x596.png\" alt=\"\" class=\"wp-image-1461\" style=\"width:695px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets24-1024x596.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets24-300x175.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets24-768x447.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets24.png 1229w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>10\/ Relevant links<\/p>\n\n\n\n<p><a href=\"https:\/\/sheets.googleapis.com\/$discovery\/rest?version=v4\">https:\/\/sheets.googleapis.com\/$discovery\/rest?version=v4<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/developers.google.com\/workspace\">https:\/\/developers.google.com\/workspace<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Goal : How to handle Google SpreadSheet with Magic xpi using REST Google API 1\/ Connect to Google Developer Console (https:\/\/console.cloud.google.com) with your gmail account 2\/ Create a new project \u00ab\u00a0SpreadSheet\u00a0\u00bb 3\/ Choose APIs &amp; services =&gt; Library and choose Sheets and enable it 4\/ Choose credentials Define an OAuth client ID with type Desktop [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1344,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[43,4,44],"tags":[45,14],"class_list":["post-1341","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google","category-magic-xpi","category-sheets","tag-sheets","tag-magic-xpi"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/09\/GoogleSheets1.png","_links":{"self":[{"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/1341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/comments?post=1341"}],"version-history":[{"count":65,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/1341\/revisions"}],"predecessor-version":[{"id":2888,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/1341\/revisions\/2888"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/media\/1344"}],"wp:attachment":[{"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/media?parent=1341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/categories?post=1341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/tags?post=1341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}