首页 帮助中心 connect-to-any-web-service-using-oauth-20

Obtenha as credenciais do cliente e os escopos

Para obter as credenciais do cliente no Dropbox, você precisa criar um aplicativo. Lá, você receberá a App key (Client ID) e a App secret (Client Secret), que são necessárias para estabelecer a conexão via OAuth 2.0. Para fazer isso: 1 Faça login na sua conta do Dropbox e vá para a Developers page. 2 Clique em Createapps. 3 Uma janela para criar um novo app na plataforma da Dropbox aparecerá. Lá, você deve: * Selecionar Scopedaccess em Choose an API.

* Selecionar Full Dropbox em Choose the type of access you need.

* Inserir um Name para seu app em Name your app.

* Clicar em Createapp.

![Document image](__CODE_BLOCK_1__  4 An app configuration window will appear. In the Settings tab, enter __CODE_BLOCK_2__ as a Redirect URI and click Add. 5 Copy the App key (Client ID) e App secret (Client Secret) e guarde-os em um local seguro. Você precisará deles mais tarde para estabelecer a conexão no Make. ![Document image](__CODE_BLOCK_3__  6 Switch to the Permissions tab. Select the scopes to let Make perform the required actions in Dropbox, and click Submit to save the changes. You will also need to add those selected scopes later when setting the connection in Make. ![Document image](__CODE_BLOCK_4__  You can always check the API documentation of the service you're connecting to to see which scope is required for a particular action. Once you have your client credentials and scopes, you can proceed with establishing the OAuth 2.0connection in Make.

Establish the connection in Make

For some websites or apps that do not have a dedicated Make integration, you will need to use an Make a request"">HTTP > Make a request módulo com um tipo de autenticação OAuth 2.0. Se o Make oferecer um módulo de app relevante, você pode simplesmente adicionar esse módulo ao cenário e estabelecer a conexão OAuth 2.0. Isso geralmente é mais simples, pois o módulo lida automaticamente com a maioria das configurações. Como o Make tem um app para o Dropbox, podemos analisar os dois casos.

Estabeleça a conexão no Make usando o HTTP app

Suponha que você precise criar uma pasta no Dropbox por meio de uma solicitação HTTP POST. Veja como estabelecer a conexão via OAuth e configurar o módulo: Confira os detalhes da API exigidos na documentação da API do Dropbox. 1 Crie um novo cenário, ou abra o existente e adicione um módulo HTTP > Make a request. ![Document image](__CODE_BLOCK_8__  2 In the Authentication type field, select OAuth 2.0. ![Document image](__CODE_BLOCK_9__  3 In the Credentials field, click Create a connection (or Add next toCreate a connection) para criar sua conexão OAuth 2.0: * No campo Connection name, insira um nome para sua conexão.

* No campo Flow type, selecione Authorization Code, pois você precisará informar também o Authorize URI e o Token URI.

* No campo Authorize URI, insira o Authorize URI https://www.dropbox.com/oauth2/authorizeas conforme definido na documentação da API do Dropbox.

* No campo Token URI, insira o Token URI https://api.dropboxapi.com/oauth2/tokenas conforme definido na documentação da API do Dropbox.

* No campo Scope, clique em +Add item para adicionar os escopos necessários.

* No campo Client ID, adicione a App key que você obteve no seu app do Dropbox.

* No campo Client Secret, adicione a App secret que você obteve no seu app do Dropbox.

![Document image](__CODE_BLOCK_12__  4 To avoid having to constantly refresh the connection, enable the Advanced settings toggle, and click +Add item to add the following Authorizeparameters : * Key : token_access_typeValue : offline

* Key : force_reapproveValue : true

![Document image](__CODE_BLOCK_13__  The Authorizeparameters mentioned above only apply to Dropbox. Other services’ APIs may require similar parameters, but with different names. Check the service’s API documentation to add the required Authorizeparameters and avoid constant OAuth 2.0 connection refreshes. 5 Click Save. 6 Allow access in the emerging window. Your connection is now successfully established. To check that it works, you can make an HTTP request. To create a folder in Dropbox: 1 In the URL field, add __CODE_BLOCK_14__ 2 Select the POST method required for this API call. ![Document image](__CODE_BLOCK_15__  3 Leave the Header and the Query sections empty. 4 For the Body section: * In the Body content type field, select application/json.

* In theBody input method field, select Data structure.

* In the Bodystructure field, click Add to create a new data structure. Add a text field path to indicate where the folder should be created and how it should be called. You can also add the Boolean autorename field to specify whether Dropbox can autorename the folder if there's a conflict. Click Save.

![Document image](__CODE_BLOCK_16__  * In the Bodycontentfield , add the path (/Make in this example) e desative o autorename.

5 Clique em Save e execute o módulo. Agora você pode verificar seu armazenamento no Dropbox. Uma nova pasta chamada Make será criada. Você também pode vê-la na saída do módulo: ![Document image](__CODE_BLOCK_17__ 

Establish the connection in Make through the Dropbox app

Since there's a Dropbox app in Make with a corresponding module, you can also add it to the scenario and establish the OAuth 2.0 connection. To do that: 1 Create a new scenario, or open an existing one, and add a Dropbox > Create a Folder module. ![Document image](__CODE_BLOCK_18__  2 Click Create a connection (or Add) para criar sua conexão OAuth 2.0. 3 Na janela de configuração da conexão: * No campo Connection name, insira um nome para distinguir sua conexão.

* No campo Client ID, adicione o Client ID que você obteve no seu app do Dropbox.

* No campo Client Secret, adicione o Client Secret que você obteve no seu app do Dropbox.

* No campo Scope, clique em +Add item para adicionar os escopos necessários.

* Clique em Save.

![Document image](__CODE_BLOCK_19__  4 Allow access in the emerging window. Your connection is now successfully established. To verify that it works, you can configure the module settings and run it. 1 To replicate what we've done above with the HTTP > Make a request module, add 'Make' in the FolderName field. Set the Folder to a general one. ![Document image](__CODE_BLOCK_20__  You can now check your Dropbox storage. A new folder called Make will be created. You can also see it in the output: ![Document image](__CODE_BLOCK_21__  

14 May 2026 Did this page help you? Yes No PREVIOUS Call Google APIs with OAuth 2.0 HTTP request NEXT Connect to Google services using a custom OAuth client Docs powered by Archbee Copy Back to Top Copy TABLE OF CONTENTS Example: Connect Make to Dropbox Obtain client credentials and scopes Establish the connection in Make Establish the connection in Make using the HTTP app Establish the connection in Make through the Dropbox app Back to Top Docs powered by Archbee × × Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key With cookies we can ensure you get the best experience on our website. These cookies may incorporate data transfers to third-party providers based in countries without an adequate level of data protection. By clicking “Accept All Cookies”, you agree to the storage of cookies on your device to improve website navigation, analyze website usage, and assist in our marketing efforts. For further information, including the processing of data by third-party providers and the possibility of changing your preferences at any time, please see your settings under “Select Cookie settings” and the following links: Cookie Notice Cookies Settings Accept Only Necessary Accept All Cookies !Company Logo.png)

学以致用,立即上手

读完文档后,不如亲自动手 — 免费注册 Make.com 账户,跟着教程搭建你的第一个工作流

✓ 永久免费版 ✓ 无需信用卡 ✓ 60 秒注册
🚀 免费注册 Make 账户