Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <div id="placeholder"></div>
  2. @section Scripts {
  3.  
  4. <script type="text/javascript" src="https://www.dropbox.com/static/api/dropbox-datastores-1.2-latest.js"> </script>
  5. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
  6. <script>
  7. var client = new Dropbox.Client({ key: "APP-KEY" });
  8. $(document).ready(function () {
  9. readDir();
  10. })
  11.  
  12. function readDir() {
  13. client.readdir("/CommunityDropBox", function (error, entries) {
  14. if (error) {
  15. alert('WRONG');
  16. } else {
  17. $('#placeholder').append("<br>The Dropbox contains: <br>" + entries.join(", <br>")).fadeIn();
  18. }
  19. })
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement