We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
prachi s.1
10 years agoNew member | Level 1
Is there any API limits
Hi,
I am working on developing an integration, would like to understand what are the API limits for Dropbox APIs v2 per day per user?
Mark L.45
10 years agoCollaborator | Level 9
Greg,
Here the code for good measure, I try and setup some reporting from the errors here. I though I was watching it, but looking at this perhaps not. It is a swift function.
func createSharedLink(lePath:String, completion: (string: String?, error: ErrorType?) -> Void) {
let request = NSMutableURLRequest(URL: NSURL(string: "https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings")!)
let session = NSURLSession.sharedSession()
request.HTTPMethod = "POST"
request.addValue("application/json",forHTTPHeaderField: "Content-Type")
request.addValue("path", forHTTPHeaderField: lePath)
request.addValue("short_url", forHTTPHeaderField: "false")
request.addValue("settings", forHTTPHeaderField: "requested_visibility\": \"public\"}")
let nodeA:NSMutableDictionary? = ["path":lePath]
do {
let jsonData = try NSJSONSerialization.dataWithJSONObject(nodeA!, options: [])
request.HTTPBody = jsonData
} catch {
completion(string: ", error: error)
}
let task = session.dataTaskWithRequest(request, completionHandler: {data, response, error -> Void in
if let error = error {
completion(string: ", error: error)
return
}
})
task.resume()
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!