cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know more about how you can find anything and protect everything? Check it out here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Expires date format - help

Expires date format - help

dandev
Helpful | Level 5
Go to solution

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

 

 

1 Accepted Solution

Accepted Solutions

dandev
Helpful | Level 5
Go to solution

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

View solution in original post

1 Reply 1

dandev
Helpful | Level 5
Go to solution

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    dandev Helpful | Level 5
What do Dropbox user levels mean?