# coding=utf-8 from __future__ import unicode_literals from pod_base import APIException, PodException from examples.config import * from pod_dealing import PodDealing try: pod_dealing = PodDealing(api_token=API_TOKEN, server_type=SERVER_MODE) print( pod_dealing.dealing_product_permission_list( sc_api_key=SC_API_KEY, sc_voucher_hash=SC_VOUCHER_HASH)) print("Total :", pod_dealing.total_items()) # OUTPUT # [ # { # "product": { # "id": 0, # "version": 68, # "timelineId": 0, # "entityId": 29990, # "numOfLikes": 0, # "numOfDisLikes": 0, # "numOfFavorites": 0, # "numOfComments": 0, # "timestamp": 0, # "enable": False, # "hide": False, # "business": { # "id": 7867, # "name": "شرکت رضا", # "numOfProducts": 369,
# coding=utf-8 from __future__ import unicode_literals from pod_base import APIException, PodException from examples.config import * from pod_dealing import PodDealing try: pod_dealing = PodDealing(api_token=API_TOKEN, server_type=SERVER_MODE) print( "Dealers\n", pod_dealing.dealer_list(sc_api_key=SC_API_KEY, sc_voucher_hash=SC_VOUCHER_HASH)) print("Total Dealers :", pod_dealing.total_items()) # OUTPUT # Dealers # [ # { # "business": { # "id": 7867, # "name": "شرکت رضا", # "numOfProducts": 369, # "rate": { # "rate": 8, # "rateCount": 1 # }, # "sheba": "640170000000000000002007" # }, # "dealer": { # "id": 8821, # "name": "خدمات رفاهی آوند", # "image": "https://core.pod.ir:443/nzh/image/?imageId=...",