public class IssueAttachments extends Initialization
DELETE_ATTACHMENT, DELETE_SIGN_OUT, easyqaUserAPI, GET_ISSUE_LIST, GET_MEMBERS_LIST, GET_ORG_MEMBERS_LIST, GET_USER, ID_ISSUE, ID_ORGANIZATION, ID_PROJECTS, ID_ROLE, ID_STATUS, ID_TEST_CASE, ID_TEST_MODULE, ID_TEST_OBJECT, ID_TEST_PLAN, ID_TEST_RUN, ID_TEST_RUN_RESULT, imageType, ISSUE_INFO, MODULE_TEST_CASES, ORGANIZATION, ORGANIZATION_ROLE, POST_SIGN_IN, PROJECT, PROJECT_ID_ISSUE, STATUSES, TEST_CASES, TEST_MODULE, TEST_OBJECT, TEST_PLAN, TEST_PLAN_TEST_CASES, TEST_RUN, TEST_RUN_RESULT, textType, UPLOAD_ATTACHMENT, UPLOAD_ATTACHMENT_ID_PROJECT, UPLOAD_CRASH, UPLOAD_ISSUE, videoType
Constructor and Description |
---|
IssueAttachments(String url) |
Modifier and Type | Method and Description |
---|---|
Integer |
createAttachment(String token,
String auth_token,
String id,
ArrayList<File> files)
Method for adding attachment to the issue by the unique issue ID in EasyQA
|
Integer |
createAttachmentByIdInProject(String token,
String auth_token,
String id,
ArrayList<File> files)
Method for adding attachment to the issue by the issue ID in the project in EasyQA
|
void |
deleteAttachmentByID(String token,
String auth_token,
String id)
Method for deleting the attachment from the issue by the unique attachment ID in EasyQA
|
public IssueAttachments(String url)
public Integer createAttachment(String token, String auth_token, String id, ArrayList<File> files) throws IOException, org.json.JSONException
token
- of your project in EasyQA. You can generate it on Integrations pageauth_token
- your authorization token in EasyQAid
- the unique issue IDfiles
- a list of files for attachmentsIOException
- for incorrect parsing of the server responseorg.json.JSONException
- if the server returns not Json objectpublic Integer createAttachmentByIdInProject(String token, String auth_token, String id, ArrayList<File> files) throws IOException, org.json.JSONException
token
- of your project in EasyQA. You can generate it on Integrations pageauth_token
- your authorization token in EasyQAid
- the issue ID in the projectfiles
- a list of files for attachmentsIOException
- for incorrect parsing of the server responseorg.json.JSONException
- if the server returns not Json objectpublic void deleteAttachmentByID(String token, String auth_token, String id) throws IOException, org.json.JSONException
token
- of your project in EasyQA. You can generate it on Integrations pageauth_token
- your authorization token in EasyQAid
- the unique ID of attachmentIOException
- for incorrect parsing of the server responseorg.json.JSONException
- if the server returns not Json objectCopyright © 2016–2017. All rights reserved.