1"use strict";(globalThis.webpackChunkOpenIntegrations=globalThis.webpackChunkOpenIntegrations||[]).push([[10374],{17186(e,r,t){t.r(r),t.d(r,{assets:()=>a,contentTitle:()=>c,default:()=>j,frontMatter:()=>d,metadata:()=>n,toc:()=>h});const n=JSON.parse('{"id":"GoogleDrive/Authorization/Refresh-token","title":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d","description":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 GoogleDrive \u0432 \u041e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439 - \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 open-source \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439 \u0434\u043b\u044f 1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435 8, OneScript \u0438 CLI","source":"@site/docs/GoogleDrive/Authorization/Refresh-token.mdx","sourceDirName":"GoogleDrive/Authorization","slug":"/GoogleDrive/Authorization/Refresh-token","permalink":"/docs/GoogleDrive/Authorization/Refresh-token","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"sidebar_position":3,"description":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 GoogleDrive \u0432 \u041e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439 - \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 open-source \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439 \u0434\u043b\u044f 1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435 8, OneScript \u0438 CLI","keywords":["1C","1\u0421","1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435","1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435 8.3","API","\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f","\u0421\u0435\u0440\u0432\u0438\u0441\u044b","\u041e\u0431\u043c\u0435\u043d","OneScript","CLI","GoogleDrive"]},"sidebar":"docs","previous":{"title":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u043f\u043e \u043a\u043e\u0434\u0443","permalink":"/docs/GoogleDrive/Authorization/Get-token-by-code"},"next":{"title":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d service \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430","permalink":"/docs/GoogleDrive/Authorization/Get-service-account-token"}}');var s=t(74848),i=t(28453),l=t(4865),o=t(19365);t(27293);const d={sidebar_position:3,description:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 GoogleDrive \u0432 \u041e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439 - \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 open-source \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439 \u0434\u043b\u044f 1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435 8, OneScript \u0438 CLI",keywords:["1C","1\u0421","1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435","1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435 8.3","API","\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f","\u0421\u0435\u0440\u0432\u0438\u0441\u044b","\u041e\u0431\u043c\u0435\u043d","OneScript","CLI","GoogleDrive"]},c="\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d",a={},h=[];function x(e){const r={a:"a",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",span:"span",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.header,{children:(0,s.jsx)(r.h1,{id:"\u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c-\u0442\u043e\u043a\u0435\u043d",children:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d"})}),"\n",(0,s.jsx)(r.p,{children:"\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0442\u043e\u043a\u0435\u043d \u043f\u043e Refresh token"}),"\n",(0,s.jsxs)(l.A,{children:[(0,s.jsxs)(o.A,{value:"params",label:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b",default:!0,children:[(0,s.jsx)(r.p,{children:(0,s.jsx)(r.code,{children:"\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0422\u043e\u043a\u0435\u043d(\u0417\u043d\u0430\u0447 ClientID, \u0417\u043d\u0430\u0447 ClientSecret, \u0417\u043d\u0430\u0447 RefreshToken) \u042d\u043a\u0441\u043f\u043e\u0440\u0442"})}),(0,s.jsxs)(r.table,{children:[(0,s.jsx)(r.thead,{children:(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.th,{children:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440"}),(0,s.jsx)(r.th,{children:"CLI \u043e\u043f\u0446\u0438\u044f"}),(0,s.jsx)(r.th,{children:"\u0422\u0438\u043f"}),(0,s.jsx)(r.th,{children:"\u041e\u0431\u044f\u0437."}),(0,s.jsx)(r.th,{children:"\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"})]})}),(0,s.jsxs)(r.tbody,{children:[(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"ClientID"}),(0,s.jsx)(r.td,{children:"--id"}),(0,s.jsx)(r.td,{children:"\u0421\u0442\u0440\u043e\u043a\u0430"}),(0,s.jsx)(r.td,{children:"\u2714"}),(0,s.jsx)(r.td,{children:"Client ID"})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"ClientSecret"}),(0,s.jsx)(r.td,{children:"--secret"}),(0,s.jsx)(r.td,{children:"\u0421\u0442\u0440\u043e\u043a\u0430"}),(0,s.jsx)(r.td,{children:"\u2714"}),(0,s.jsx)(r.td,{children:"Client secret"})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"RefreshToken"}),(0,s.jsx)(r.td,{children:"--refresh"}),(0,s.jsx)(r.td,{children:"\u0421\u0442\u0440\u043e\u043a\u0430"}),(0,s.jsx)(r.td,{children:"\u2714"}),(0,s.jsx)(r.td,{children:"Refresh token"})]})]})]}),(0,s.jsxs)("div",{className:"return-value-note",children:[(0,s.jsx)("div",{className:"return-value-note__title",children:"\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"}),(0,s.jsx)("div",{className:"return-value-note__value",children:(0,s.jsx)(r.p,{children:"\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0418\u0437 \u041a\u043b\u044e\u0447\u0418\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 - \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 JSON \u043e\u0442\u0432\u0435\u0442\u0430 \u043e\u0442 Google"})})]})]}),(0,s.jsx)(o.A,{value:"extended",label:(0,s.jsxs)(r.span,{children:["\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432"," ",(0,s.jsx)(r.a,{href:"/docs/Start/Advanced-call",target:"_blank",rel:"noreferrer",title:"\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435",onClick:e=>e.stopPropagation(),children:"?"})]}),children:(0,s.jsxs)(r.table,{children:[(0,s.jsx)(r.thead,{children:(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.th,{children:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440"}),(0,s.jsx)(r.th,{children:"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435"})]})}),(0,s.jsx)(r.tbody,{children:(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{children:"dontwait"}),(0,s.jsx)(r.td,{children:"\u0421\u043e\u0437\u0434\u0430\u0435\u0442 \u0444\u043e\u043d\u043e\u0432\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435 (\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f 1\u0421 \u0438 OneScript)"})]})})]})})]}),"\n",(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-bsl",metastring:'title="\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f 1\u0421:\u041f\u
10440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435/OneScript"',children:' ClientID = "345925493105-641q49rl4oflrtr46fkgqf5upiltr4bg.apps.googleusercontent.com";\n ClientSecret = "GOCSPX-v--MJyEjtV...";\n RefreshToken = "1//09J8_kLVO7HENCgYIARAAGAkSNwF-L9IrtySthNY3OrNP5Qu...";\n\n \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 = OPI_GoogleDrive.\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0422\u043e\u043a\u0435\u043d(ClientID, ClientSecret, RefreshToken);\n'})}),"\n",(0,s.jsxs)(l.A,{children:[(0,s.jsx)(o.A,{value:"bash",label:"Bash",default:!0,children:(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-bash",children:' oint gdrive \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0422\u043e\u043a\u0435\u043d \\\n --id "345925493105-641q49rl4oflrtr46fkgqf5upiltr4bg.apps.googleusercontent.com" \\\n --secret "***" \\\n --refresh "***"\n'})})}),(0,s.jsx)(o.A,{value:"bat",label:"CMD/Bat",default:!0,children:(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-batch",children:' oint gdrive \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u0422\u043e\u043a\u0435\u043d ^\n --id "345925493105-641q49rl4oflrtr46fkgqf5upiltr4bg.apps.googleusercontent.com" ^\n --secret "***" ^\n --refresh "***"\n'})})})]}),"\n",(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-json",metastring:'title="\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442"',children:'{\n "access_token": "***",\n "expires_in": 3599,\n "scope": "https://www.googleapis.com/auth/spreadsheets https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/calendar",\n "token_type": "***"\n}\n'})})]})}function j(e={}){const{wrapper:r}={...(0,i.R)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.