以下代码块是我的代码:
from jira import JIRA
jira_options = {
'server': '<your jira url>',
'verify': True,
'headers' : {
'X-Atlassian-Token': 'no-check',
'Cache-Control': 'no-cache',
'Content-Type': 'application/json',
}
}
jira = JIRA(options=jira_options, basic_auth=('<username>', '<password>'), validate=True)
答案 0 :(得分:0)
这是正确的用法:
mediaType: this.camera.MediaType.PICTURE
let options: CameraOptions = {
quality: 50,
destinationType: this.camera.DestinationType.FILE_URI,
sourceType:this.camera.PictureSourceType.PHOTOLIBRARY,
allowEdit: false,
mediaType: this.camera.MediaType.PICTURE,
saveToPhotoAlbum: false};
this.camera.getPicture(options)
.then((videoUri)=> {
window.resolveLocalFileSystemURL(videoUri, function (fileEntry) {
fileEntry.file(function (fileObj) {
this.auth.presentAlert(fileObj)
this.startTransfering(fileObj) ;
console.log("Size = " + fileObj.size);
});
});
},
(err)=> {
this.auth.presentAlert(err) ;
}) ;