Package org.springframework.social.dropbox.api

Examples of org.springframework.social.dropbox.api.FileUrl


               .replaceFirst("\\{appFolderUrl\\}", "dropbox")
               .replaceFirst("\\{path\\}", "file3.json")))
           .andExpect(method(GET))
           .andRespond(withResponse(jsonResource("/media"), responseHeaders));
      
       FileUrl url = dropbox.getMedia("file3.json");
       assertEquals("https://dl.dropbox.com/0/view/6rcp09bdfz1kxfv/file3.json", url.getUrl());
       assertEquals(fromDropboxDate("Sun, 15 Jan 2012 15:24:47 +0000"), url.getExpires());
     }
View Full Code Here


               .replaceFirst("\\{appFolderUrl\\}", "dropbox")
               .replaceFirst("\\{path\\}", "file3.json")))
           .andExpect(method(GET))
           .andRespond(withResponse(jsonResource("/share"), responseHeaders));
      
       FileUrl url = dropbox.getShare("file3.json");
       assertEquals("http://db.tt/LnS1qL1q", url.getUrl());
       assertEquals(fromDropboxDate("Sun, 15 Jan 2012 15:24:47 +0000"), url.getExpires());
     }
View Full Code Here

TOP

Related Classes of org.springframework.social.dropbox.api.FileUrl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.