This class represents the DrillbitAPI, which provides methods for interacting with the Drillbit Plagiarism Check API.
base_url
(str): The base URL of the Drillbit Plagiarism Check API.
base_url
(str): The base URL of the Drillbit Plagiarism Check API.jwt_token
(str): The JWT token used for authentication.jwt_expiry
(int): The expiration time of the JWT token.
Authenticates the user with the Drillbit Plagiarism Check API.
username
(str): The username of the user.password
(str): The password of the user.frappe
: The frappe object.
Checks if the JWT token is valid.
Creates a new folder in the Drillbit Plagiarism Check API.
folder_name
(str): The name of the folder to create.
Returns the headers required for API requests.
upload_file(author_name, title, document_type, guide_email, guide_name, plagiarism_check, grammar_check, language, file_path)
Uploads a file to the Drillbit Plagiarism Check API.
author_name
(str): The name of the author.title
(str): The title of the document.document_type
(str): The type of the document.guide_email
(str): The email of the guide.guide_name
(str): The name of the guide.plagiarism_check
(str): The plagiarism check option.grammar_check
(str): The grammar check option.language
(str): The language of the document.file_path
(str): The path to the file to upload.
Prints debugging information about the API request.
request
: The API request object.
Prints debugging information about the API response.
response
: The API response object.
Creates a new submission in a folder.
folder_id
(str): The ID of the folder.submission_id
(str): The ID of the submission.name
(str): The name of the submission.title
(str): The title of the submission.assignment_id
(str): The ID of the assignment.doc_type
(str): The type of the document.file_path
(str): The path to the file to upload.
Downloads a file from the Drillbit Plagiarism Check API.
paper_id
(str): The ID of the paper.d_key
(str): The download key.
Retrieves a list of folders from the Drillbit Plagiarism Check API.
page
(int): The page number.size
(int): The number of items per page.field
(str): The field to sort by.order_by
(str): The sort order.
Retrieves a list of submissions from a folder in the Drillbit Plagiarism Check API.
folder_id
(str): The ID of the folder.page
(int): The page number.size
(int): The number of items per page.field
(str): The field to sort by.order_by
(str): The sort order.
Deletes a folder from the Drillbit Plagiarism Check API.
folder_id
(str): The ID of the folder.
Edits a folder in the Drillbit Plagiarism Check API.
folder_id
(str): The ID of the folder.folder_name
(str): The new name of the folder.
Deletes a submission from a folder in the Drillbit Plagiarism Check API.
folder_id
(str): The ID of the folder.paper_id
(str): The ID of the submission.