http://developer.qiniu.com/ar...上述网页中写“客户端上传前需要先从服务端获取上传凭证”,该页面之后给出了本地生成上传凭证的算法,但没有给出如何向服务器申请上传凭证的方法,请指教。
认证高级PHP讲师
String ACCESS_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxx"; String SECRET_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxx"; Auth auth = Auth.create(ACCESS_KEY, SECRET_KEY); //不是必须发生在子线程 new Thread() { @Override public void run() { String bucketName = "xxxxx"; String token = auth.uploadToken(bucketName, null); Log.e(TAG, "run: " + token); } }.start(); //必须引入 //compile 'com.qiniu:qiniu-java-sdk:7.1.+' //这些其实是服务器做的事情
Send http request to the business server, and the business server responds with the uptoken string
Send http request to the business server, and the business server responds with the uptoken string