All URIs are relative to https://api.aspose.cloud/v4.0
Method | HTTP request | Description |
---|---|---|
scan | GET /barcode/scan | Scan barcode from file on server using GET requests with parameter in query string. |
scan_base64 | POST /barcode/scan-body | Scan barcode from file in request body using POST requests with parameter in body in json or xml format. |
scan_multipart | POST /barcode/scan-multipart | Scan barcode from file in request body using POST requests with parameter in multipart form. |
BarcodeResponseList scan(file_url)
Scan barcode from file on server using GET requests with parameter in query string.
import time
import aspose_barcode_cloud
from aspose_barcode_cloud.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: JWT
configuration = aspose_barcode_cloud.Configuration(access_token="YOUR_ACCESS_TOKEN")
# create an instance of the API class
api_instance = aspose_barcode_cloud.ScanApi(aspose_barcode_cloud.ApiClient(configuration))
file_url = 'file_url_example' # str | Url to barcode image
try:
# Scan barcode from file on server using GET requests with parameter in query string.
api_response = api_instance.scan(file_url)
pprint(api_response)
except ApiException as e:
print("Exception when calling ScanApi->scan: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
file_url | str | Url to barcode image |
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BarcodeResponseList scan_base64(scan_base64_request)
Scan barcode from file in request body using POST requests with parameter in body in json or xml format.
import time
import aspose_barcode_cloud
from aspose_barcode_cloud.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: JWT
configuration = aspose_barcode_cloud.Configuration(access_token="YOUR_ACCESS_TOKEN")
# create an instance of the API class
api_instance = aspose_barcode_cloud.ScanApi(aspose_barcode_cloud.ApiClient(configuration))
scan_base64_request = aspose_barcode_cloud.ScanBase64Request() # ScanBase64Request | Barcode scan request
try:
# Scan barcode from file in request body using POST requests with parameter in body in json or xml format.
api_response = api_instance.scan_base64(scan_base64_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling ScanApi->scan_base64: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
scan_base64_request | ScanBase64Request | Barcode scan request |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BarcodeResponseList scan_multipart(file)
Scan barcode from file in request body using POST requests with parameter in multipart form.
import time
import aspose_barcode_cloud
from aspose_barcode_cloud.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: JWT
configuration = aspose_barcode_cloud.Configuration(access_token="YOUR_ACCESS_TOKEN")
# create an instance of the API class
api_instance = aspose_barcode_cloud.ScanApi(aspose_barcode_cloud.ApiClient(configuration))
file = None # bytearray | Barcode image file
try:
# Scan barcode from file in request body using POST requests with parameter in multipart form.
api_response = api_instance.scan_multipart(file)
pprint(api_response)
except ApiException as e:
print("Exception when calling ScanApi->scan_multipart: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
file | bytearray | Barcode image file |
- Content-Type: multipart/form-data
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]