Created
March 29, 2013 03:47
-
-
Save syshack/5268644 to your computer and use it in GitHub Desktop.
jbox_upload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void main(String[] args) throws UnsupportedEncodingException, ClientProtocolException, IOException { | |
| JboxClientLoginService jboxClientLogin = new JboxClientLoginService("***", "***"); | |
| JboxMessage loginMsg = jboxClientLogin.login(); | |
| if(!loginMsg.isSuccessful()){return;}; | |
| JboxClientMainService jboxClientUploadFile = new JboxClientMainService(false); | |
| String cookieValue = loginMsg.getIntegratedCookie(); | |
| JboxUploadOption option = new JboxUploadOption(); | |
| option.setFile(new File("D://10.txt")); | |
| JboxMessage uploadMsg = jboxClientUploadFile.uploadFile(cookieValue, option); | |
| System.out.println(uploadMsg); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment