Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
dandev
5 years agoHelpful | Level 5
Expires date format - help
Hi there,
Could you give an example of a date, in particular for the expires field for the Create Shared Link With Settings endpoint? I'm struggling to get it to work, keep keeping bad requests.
From the docs: %Y-%m-%dT%H:%M:%SZ
My implementation in PHP:
date('Y-m-dTH:i:sZ', time() + $a_number_of_seconds)
(which outputs 2021-05-15BST11:23:323600)
I assume I shouldn't put the percentage symbols in the date?
If you could give me the PHP date format that would be great 🙂 Otherwise a full date example (not just the format) would help.
Thanks
Nevermind, figured it out. I needed to be a bit more literal! The T and Z should appear as such in the date, so:
2021-05-15T11:23:32Z
1 Reply
- dandev5 years agoHelpful | Level 5
Nevermind, figured it out. I needed to be a bit more literal! The T and Z should appear as such in the date, so:
2021-05-15T11:23:32Z
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!