We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
API
5748 TopicsUsing the Javascript Chooser API in a Web Extension
I am developing a feature for my note taking Firefox Web Extension to import text from a text file from the User's Dropbox using the Javascript Chooser API After invoking the Dropbox.choose(options) with a button, the resulting window fails to load properly, displaying the message indicated in the attached image below concerning the origin not matching any app domain (since its an extension and not a normal url). I would like to know if there is a different approach or workaround that I may be missing. Additionally according to theMDN Security Best Practices for Web Extensions, it would seem that the recommended setup outlined on the Javascript Chooser API page using an embeded script in the HTML is inadequate for this application. However, even after downloading the src script and attempting to use it locally the src script still attempts to invoke creating a script element in the HTML which Firefox rejects and produces the error: Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”) Any ideas on working around this?Solved3.1KViews0likes5CommentsAPI接続による共有設定
A,B,Cと3つのシステムにてAPIを通したファイル共有を検討中です。 以下のようなフォルダ構成で、それぞれ3システムのアクセス権を制御したいのですが、うまくいかず投稿させていただきました。 /<アカウントの名前> ├ Bフォルダ ・・・ AとBシステムが読書き可能 └ Cフォルダ ・・・ AとCシステムが読書き可能 BフォルダのリンクをBシステムに、CフォルダのリンクをCシステムに通知して、APIでアクセスしてもらおうと考えております。 (Aシステムはアカウント本人として考えています。) そもそも、この考えが間違っている、あるいは、より良い方法がありましたら、ご指摘、ご教授いただければ幸いです。 以下、上記の考えを元に、試した状況です。 1.アプリを作成し、アクセストークンを取得 2.Aシステムから、APIでファイルをアップロード 3./アプリ/<アプリ名>/Bフォルダ 配下にファイルが作成された 3.で想定と異なり、今に至ります。 APIで、/<アカウントの名前>/Bフォルダ 配下にアップロードはできないのでしょうか? Businesプランで、チームフォルダを利用しないといけないような気がしています。 よろしくお願いいたします。Solved72Views0likes5CommentsMissing parameter: client_id for lwc
Im working on a lwc where id like to embed a signing process in iframe, I was able to successfully retrieve sign URL, but when I try to use it on iframe I got following error, at which step do I need to set my client id? So far I used this with client id in request body String apiUrl = 'https://api.hellosign.com/v3/signature_request/create_embedded_with_template'; and request.setEndpoint('https://api.hellosign.com/v3/embedded/sign_url/' + signatureId); with just signature id in request body Also I have a problem setting body for my request, I used this class to generate json string, but when I use this approach I get error({"error":{"error_msg":"No template_id or template_ids specified","error_path":"template_id","error_name":"bad_request"}}) HelloSignJSON.Signing_options so = new HelloSignJSON.Signing_options(); so.default_type = 'draw'; so.draw = true; so.phone = true; so.type = true; so.upload = true; HelloSignJSON.Signers signer = new HelloSignJSON.Signers(); signer.role = 'Lead.Customer'; signer.name = 'Rostyslav'; signer.email_address = 'popov.rst@gmail.com'; List<HelloSignJSON.Signers> signers = new List<HelloSignJSON.Signers>{signer}; HelloSignJSON hsj = new HelloSignJSON(); hsj.template_ids = new List<String>{'90c43afee504f24a2dcd67ab7991f8f3f5900ef3'}; hsj.client_id = 'CLIENT_ID'; hsj.subject = 'Embedded Subject'; hsj.message = 'Embedded message'; hsj.signing_options = so; hsj.test_mode = true; hsj.signers = signers; String requestBody = JSON.serialize(hsj);33Views0likes0CommentsAPI Upload .HEIC and convert to JPG
I am using the API to upload images and make them public. I get the public link back and embed in my application. ALL GOOD. Now I am looking to allow .HEIC uploads. I don't see anything in the API to cause the conversion. So, I put automation on my parent folder and that seems to create another duplicate photo converted to JPG. At that point I assume I have lost the public link and I have duplicate files. I am looking for any pointers here..... thanks in advance.461Views0likes7CommentsInvalid Folder Name with Team API
I am trying to create folders using the api in a team folder like this: // Get Namespace ID const dbx = new Dropbox({ accessToken: process.env.DROPBOX_ACCESS_TOKEN }); const baseFolder = "/Data Transfers"; const customerFolder = `${baseFolder}/${folder_name}`; const dataFolder = `${customerFolder}/data`; // Create a folder in dropbox await step.run('create-customer-folder', async () => { console.log(customerFolder); await dbx.teamTeamFolderCreate({ name: customerFolder }); await dbx.filesCreateFolderV2({ path: dataFolder }); }); This should be just to create a folder under our team/Data Transfers/TestFolder but it is giving me an Invalid Folder name, what am I doing wrong? I am just getting started with the API and I am completely lost.89Views0likes1CommentZapier - 409 error path/not found
Hello everyone! I'm trying to get the meta data for a file so I can access the "shared_folder_id" and then add a member (or group if possible) to that folder. It's on a team folder. I'm using Zapier as I want this to be automated upon a trigger. The issue I get is during a Post request to get_metadata, the path cannot be found (error 409) I first find a folder, which returns correctly. Then I run a custom request (http) for: https://api.dropboxapi.com/2/files/get_metadata Data: { "include_deleted": false, "include_has_explicit_shared_members": false, "include_media_info": false, "path": "<path from the previous find folder path in zap>" } I've also verified this folder path does exist (I can see it, and it's all spelt correctly). This leads me to believe it's a access or permission error, but I'm not confident. Headers: AuthorizationBearer <my actual token id> Content-Typeapplication/json Dropbox-API-Select-Admin.dbmid:<my actual token id for myself as an admin user> The folder I'm accessing has myself listed as access, and I'm also included in a group that has access. I've selected all permissions on my app to write/edit everything, generated a new auth token after saving, and I still have issues. Any help is much appreciated. I'm happy to provide any additional information as well. Thanks in advance!Solved1.7KViews0likes12CommentsKnow uploaded by user of a file and folder
Hi, I am developing an application where I need to know the user who uploaded particular file. I checked that dropbox UI has that information available and it fetches it from https://www.dropbox.com/2/files/get_upload_infoendpoint. This endpoint is not listed in dropbox API documentation. Also, response returned by it only contains displayName and uploadTime of the file which is not sufficient to uniquely identify the user. Is there any better API available to know uploaded by user of a file and folder?449Views1like6CommentsUnable to share folders since migration to updated team space
Back in June, our Dropbox Business account was migrated to the Updated Team Space system. We have a custom application that manages automatically uploading files and sharing folders with our customers. Everything was working fine prior to June, new files could be uploaded, folders could be shared, and folder members could be added. After the account was migrated, all of the functionality broke, as expected. We were able to fix file uploads by grabbing the new root_namespace_id for the account, but we have not been able to share folders since the account migration. This is the response from the `get_features` endpoint for our account, which I believe indicates we are on the updated team space: { "values": [ { ".tag": "has_team_shared_dropbox", "has_team_shared_dropbox": { ".tag": "has_team_shared_dropbox", "has_team_shared_dropbox": false } }, { ".tag": "has_distinct_member_homes", "has_distinct_member_homes": { ".tag": "has_distinct_member_homes", "has_distinct_member_homes": true } } ] } Here are the scopes granted to our application: files.metadata.write files.metadata.read files.content.write files.content.read sharing.write sharing.read file_requests.write file_requests.read contacts.write contacts.read Here's an example of a file upload call that succeeds: fetch('https://content.dropboxapi.com/2/files/upload', { method: 'POST', headers: { 'Content-Type': 'application/octet-stream', 'Dropbox-API-Arg': JSON.stringify({ path: `/Client Files/${customer.name}/${file.name}`, mute: false, }), Authorization: `Bearer ${token}`, 'Dropbox-API-Select-Admin': adminId, 'Dropbox-API-Path-Root': JSON.stringify({ '.tag': 'namespace_id', namespace_id: rootNamespaceId, }), }, body: buffer, } However, after updating the share_folder call, we are getting {".tag": "no_permission"} responses. Here's how we are attempting to share new folders created by the app: fetch('https://api.dropboxapi.com/2/sharing/share_folder', { method: 'POST', headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json', 'Dropbox-API-Select-Admin': adminId, 'Dropbox-API-Path-Root': JSON.stringify({ '.tag': 'namespace_id', namespace_id: rootNamespaceId }), }, body: JSON.stringify({ path: `/Client Files/${customer.name}`, member_policy: 'anyone', }), }); We've gone a few rounds trying different permutations of Dropbox-API-Select-Admin, Dropbox-API-Select-User, and Dropbox-API-Path-Root options, but we have had no luck. I don't know if this matters, but here's the metadata for the "/Client Files" folder: { ".tag": "folder", "name": "Client Files", "path_lower": "/client files", "path_display": "/Client Files", "parent_shared_folder_id": "<root namespace id>", "id": "id:<id>", "shared_folder_id": "<number>", "sharing_info": { "read_only": false, "parent_shared_folder_id": "<root namespace id>", "shared_folder_id": "<number>", "traverse_only": false, "no_access": false } }Solved292Views0likes2CommentsImages for gallery
I am a novice, sorry for the lame question, but I need to make an app that searches images based on their tags. Since all apps are located in the Applications/[my app] folder, all images to be sorted (3K+) need to be relocated into this new folder? If so, is there a way to make a redirecting link to the existent folder I already have?Solved1.1KViews0likes2Comments