# -*-coding:utf-8 -*-
import re
import datetime
import requests
import json
import urllib
import sys
import hashlib
import base64
from kdniao.mdutils import utf8

# reload(sys)
# sys.setdefaultencoding('utf8')
a = sys.getdefaultencoding()
print a

#request_url = "http://testapi.kdniao.cc:8081/Ebusiness/EbusinessOrderHandle.aspx"
request_url = "http://api.kdniao.cc/Ebusiness/EbusinessOrderHandle.aspx"
user_ID = '1311276'
API_key = 'fba93f3f-bf15-41b8-8f33-e47751e6c2e6'
requestData = '{"LogisticCode":"887093117556741105"}'

def send(req_type, data):
    return _client._request(req_type, data)

def recognise(self, logistic_code):
    rtype = "2002"
    params = {
        "LogisticCode": logistic_code,
    }
    return send(rtype, params)