Skip to content

Latest commit

 

History

History
155 lines (106 loc) · 5 KB

ScanApi.md

File metadata and controls

155 lines (106 loc) · 5 KB

aspose_barcode_cloud.ScanApi

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.

scan

BarcodeResponseList scan(file_url)

Scan barcode from file on server using GET requests with parameter in query string.

Example

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)

Parameters

Name Type Description Notes
file_url str Url to barcode image

Return type

BarcodeResponseList

Authorization

JWT

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

scan_base64

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.

Example

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)

Parameters

Name Type Description Notes
scan_base64_request ScanBase64Request Barcode scan request

Return type

BarcodeResponseList

Authorization

JWT

HTTP request headers

  • 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]

scan_multipart

BarcodeResponseList scan_multipart(file)

Scan barcode from file in request body using POST requests with parameter in multipart form.

Example

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)

Parameters

Name Type Description Notes
file bytearray Barcode image file

Return type

BarcodeResponseList

Authorization

JWT

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json, application/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]