示例#1
0
    def member_register(self):
        #20180704
        #global timestamp
        #global mail
        #global rannum
        #rannum = str(random.randint(1000, 9999))
        #timestamp = time.strftime('%Y%m%d%H%M%S',time.localtime(time.time()))
        #mail = '*****@*****.**'% (timestamp)
        #phone ='1339321 %s '%(rannum)
        #print timestamp
        #print mail

        url = "https://s2-api.smarket.net.cn/member/register"
        print "email:", apicommon.get_random_str()
        #payload = "{\"tenantId\":\"1116\",\"schemaId\":\"2808\",\"memberFormId\":\"6388\",\"url\":\"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/signup.html?memberFormId=6388&configId=254305&memberSchemaId=2808&backUrl=\",\"referenceUrl\":\"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305\",\"token\":\"\",\"verify\":\"\",\"formData\":[{\"fieldName\":\"name\",\"value\":\"邢英丽\"},{\"fieldName\":\"email\",\"value\":\"[email protected]\"},{\"fieldName\":\"password\",\"value\":\"4297F44B13955235245B2497399D7A93\"}],\"browseInfo\":{\"userAgent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\",\"browser\":\"Chrome\",\"version\":\"66.0.3359.181\",\"os\":\"Windows\",\"equipment\":\"电脑端\",\"resolution\":\"1366X768\",\"referenceUrl\":\"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305\",\"referenceTitle\":\"\",\"sessionId\":\"ec69f3edd1c9908cb8cfeb1e4528488e\"},\"globalUserId\":\"76ef040b-49ad-49db-8f4d-afe9636baca5\"}"
        # payload ={"tenantId":"1116","schemaId":"2808","memberFormId":"6388","url":"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/signup.html?memberFormId=6388&configId=254305&memberSchemaId=2808&backUrl=",
        #           "referenceUrl":"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305",
        #           "token":"","verify":"","formData":[{"fieldName":"name","value":"邢英丽"},
        #                                              {"fieldName":"email","value":apicommon.get_mail()},
        #                                              {"fieldName":"password","value":"4297F44B13955235245B2497399D7A93"}],
        #           "browseInfo":{"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36","browser":"Chrome","version":"66.0.3359.181","os":"Windows","equipment":"电脑端","resolution":"1366X768","referenceUrl":"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305","referenceTitle":"","sessionId":"ec69f3edd1c9908cb8cfeb1e4528488e"},"globalUserId":"76991fd6-62ff-46ef-aec6-e4df7d5627ab"}
        payload = "{\"tenantId\":\"1116\",\"schemaId\":\"2808\",\"memberFormId\":\"6388\",\"url\":\"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/signup.html?memberFormId=6388&configId=254305&memberSchemaId=2808&backUrl=\",\"referenceUrl\":\"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305\",\"token\":\"\",\"verify\":\"\",\"formData\":[{\"fieldName\":\"name\",\"value\":\"邢英丽\"},{\"fieldName\":\"email\",\"value\":\"" + apicommon.get_tiantangmail(
        ) + "\"},{\"fieldName\":\"password\",\"value\":\"4297F44B13955235245B2497399D7A93\"}],\"browseInfo\":{\"userAgent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\",\"browser\":\"Chrome\",\"version\":\"66.0.3359.181\",\"os\":\"Windows\",\"equipment\":\"电脑端\",\"resolution\":\"1366X768\",\"referenceUrl\":\"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305\",\"referenceTitle\":\"\",\"sessionId\":\"ec69f3edd1c9908cb8cfeb1e4528488e\"},\"globalUserId\":\"11e3f2c4-a839-4ba5-b70d-831a8a3ac189\"}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "d06acbfd-9163-4796-9965-1a1b72159629"
        }

        # response = requests.request("POST", url, data=payload, headers=headers)
        return apicommon.post_req(url, payload, headers)
示例#2
0
    def file_getList(self):
        url = "http://s2-api.smarket.net.cn/file/getList"

        payload = {
            "tenantId": 1116,
            "moduleType": "",
            "instanceId": 478,
            "folderId": 1057315,
            "name": "",
            "labelname": "",
            "start": 0,
            "num": 20,
            "type": 1,
            "fileIds": 1057315,
            "isShowSys": 0,
            "fileTypes": [],
            "sortType": 1,
            "_cache_with_cached": "1",
            "_cache_refresh": "1",
            "_cache_timeout": "60"
        }
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "be08b32e-383c-46d8-912c-5c06ef324575"
        }

        return apicommon.post_req(url, payload, headers)
示例#3
0
    def edm_sendEmail(self):
        #20180704
        # 1、url = "http://projectsapi.smarket.net.cn/beisensignsmarketapi"错误
        #2、headers定义的类型是"application/x-www-form-urlencoded",那么提交Json他也不会处理的。所以payload没有用处
        url = "http://projectsapi.smarket.net.cn/beisensignsmarketapi?smkproxyurl=http%3A%2F%2FS2-oldapi.smarket.net.cn%2Fedm%2FsendEmail"
        payload1 = {
            "tenantId": 1116,
            "moduleType": "",
            "instanceId": 478,
            "folderId": 1057315,
            "name": "",
            "labelname": "",
            "start": 0,
            "num": 20,
            "type": 1,
            "fileIds": 1057315,
            "isShowSys": 0,
            "fileTypes": [],
            "sortType": 1,
            "_cache_with_cached": "1",
            "_cache_refresh": "1",
            "_cache_timeout": "60"
        }
        payload = {
            'content':
            '%E6%82%A8%E5%A5%BD%EF%BC%81%E6%96%87%E4%BB%B6%E4%B8%8B%E8%BD%BD%E5%9C%B0%E5%9D%80%E5%A6%82%E4%B8%8B%3Cbr%2F%3Ehttp%3A%2F%2Fuatcontent.wechat.smarket.net.cn%2Findex.php%3FmappingId%3D65412a1678c326edb74e31a88abddaf9%26type%3Ddownload%3Cbr%2F%3E',
            'subject': '会议资料下载',
            'toEmails': '*****@*****.**'
        }
        headers = {'Content-Type': "application/x-www-form-urlencoded"}

        return apicommon.post_req(url, payload, headers)
示例#4
0
 def member_geneRegister(self):
     global timestamp
     global mail
     global rannum
     rannum = str(random.randint(1000, 9999))
     timestamp = time.strftime('%Y%m%d%H%M%S', time.localtime(time.time()))
     timetest = timestamp[:13]
     mail = '*****@*****.**' % (timetest)
     print "mail:", mail
     base_dir = os.path.join(os.path.dirname(__file__), 'tokenfornt.md')
     with open(base_dir, 'r') as f:
         Sesson = f.read()
     print "sesson:", Sesson
     url = "http://s2-api.smarket.net.cn/member/geneRegister"
     #20180704
     #payload = "{\r\n  \"tenantId\": \"1116\",\r\n  \"schemaId\": \"2808\",\r\n  \"memberFormId\": \"6388\",\r\n  \"url\": \"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/signup.html?memberFormId=6388&configId=254305&memberSchemaId=2808&backUrl=\",\r\n  \"referenceUrl\": \"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305\",\r\n  \"token\": \"\",\r\n  \"verify\": \"\",\r\n  \"formData\": [{\r\n    \"fieldName\": \"name\",\r\n    \"value\": \"13393213121\"\r\n  }, {\r\n    \"fieldName\": \"email\",\r\n    \"value\": \""+mail+"\"\r\n  }, {\r\n    \"fieldName\": \"password\",\r\n    \"value\": \"4297F44B13955235245B2497399D7A93\"\r\n  }],\r\n  \"browseInfo\": {\r\n    \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36\",\r\n    \"browser\": \"Chrome\",\r\n    \"version\": \"66.0.3359.139\",\r\n    \"os\": \"Windows\",\r\n    \"equipment\": \"电脑端\",\r\n    \"resolution\": \"1536X864\",\r\n    \"referenceUrl\": \"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305\",\r\n    \"referenceTitle\": \"\",\r\n      \"sess\": \""+apicommon.forntSession+"\"\r\n  },\r\n  \"globalUserId\": \"39e5bd2a4a1c363d09b9fdd09323b3d8\"\r\n}"
     # payload = {
     #   "tenantId": "1116",
     #   "schemaId": "2808",
     #   "memberFormId": "6388",
     #   "url": "https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/signup.html?memberFormId=6388&configId=254305&memberSchemaId=2808&backUrl=",
     #   "referenceUrl": "https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305",
     #   "token": "",
     #   "verify": "",
     #   "formData": [{
     #     "fieldName": "name",
     #     "value": "13393213121"
     #   }, {
     #     "fieldName": "email",
     #     "value": apicommon.get_mail()
     #   }, {
     #     "fieldName": "password",
     #     "value": "4297F44B13955235245B2497399D7A93"
     #   }],
     #   "browseInfo": {
     #     "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36",
     #     "browser": "Chrome",
     #     "version": "66.0.3359.139",
     #     "os": "Windows",
     #     "equipment": "电脑端",
     #     "resolution": "1536X864",
     #     "referenceUrl": "https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305",
     #     "referenceTitle": "",
     #     "sess": apicommon.forntSession
     #   },
     #   "globalUserId": apicommon.get_date()+apicommon.get_random_str()
     # }
     payload = "{\r\n  \"tenantId\": \"1116\",\r\n  \"schemaId\": \"2808\",\r\n  \"memberFormId\": \"6388\",\r\n  \"url\": \"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/signup.html?memberFormId=6388&configId=254305&memberSchemaId=2808&backUrl=\",\r\n  \"referenceUrl\": \"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305\",\r\n  \"token\": \"\",\r\n  \"verify\": \"\",\r\n  \"formData\": [{\r\n    \"fieldName\": \"name\",\r\n    \"value\": \"13393213121\"\r\n  }, {\r\n    \"fieldName\": \"email\",\r\n    \"value\": \"" + apicommon.get_newmail(
     ) + "\"\r\n  }, {\r\n    \"fieldName\": \"password\",\r\n    \"value\": \"4297F44B13955235245B2497399D7A93\"\r\n  }],\r\n  \"browseInfo\": {\r\n    \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36\",\r\n    \"browser\": \"Chrome\",\r\n    \"version\": \"66.0.3359.139\",\r\n    \"os\": \"Windows\",\r\n    \"equipment\": \"电脑端\",\r\n    \"resolution\": \"1536X864\",\r\n    \"referenceUrl\": \"https://f.smarket.net.cn/s/template/078f097e0e29d7e56d5ad4a84a085df4/view/login.html?memberFormId=6388&memberSchemaId=2808&configId=254305\",\r\n    \"referenceTitle\": \"\",\r\n      \"sess\": \"" + Sesson + "\"\r\n  },\r\n  \"globalUserId\": \"39e5bd2a4a1c363d09b9fdd09323b3d8\"\r\n}"
     headers = {
         'Content-Type': "application/json",
         'Cache-Control': "no-cache",
         'Postman-Token': "f2cc7a6d-c77a-405e-84c2-e3829b3a5be8"
     }
     # response = requests.request("POST", url, data=payload, headers=headers)
     return apicommon.post_req(url, payload, headers)
示例#5
0
    def member_form_get(self):
        url = "http://s2-api.smarket.net.cn/member/form/get"

        payload = "{\r\n  \"memberFormId\":6329,\r\n  \"sess\": \"" + apicommon.bakSess + "\"\r\n}"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "859e9627-9669-4cf7-aeb0-ee2dd5bc0aec"
        }

        return apicommon.post_req(url, payload, headers)
示例#6
0
    def dic_params_getList(self):
        url = "http://s2-api.smarket.net.cn/dic/params/getList"

        payload = "{     \"tenantId\": 119,     \"dicId\": \"2492\"   }"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "7c2c46b0-4f24-48d7-9e2a-bdf25e4791d0"
        }

        return apicommon.post_req(url, payload, headers)
示例#7
0
    def webinar_open_getWebinarInfo(self):
        url = "http://s2-api.smarket.net.cn/webinar/open/getWebinarInfo"

        payload = "{\r\n    \"instanceId\": 38369,\r\n    \"tenantId\": 1116,\r\n    \"includeCustomField\": 0,\r\n    \"_cache_with_cached\": \"1\",\r\n    \"_cache_refresh\": \"1\",\r\n    \"_cache_timeout\": \"60\"\r\n  }"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "5d5bb52c-270e-409a-ad57-4d4944bd4aa8"
        }

        return apicommon.post_req(url, payload, headers)
示例#8
0
    def weChat_getAppId(self):
        url = "http://s2-api.smarket.net.cn/weChat/getAppId"

        payload = "{\r\n    \"weChatId\":\" \"\r\n  }"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "975eafb3-26cb-42cf-bfdf-4771b5c5090f"
        }

        return apicommon.post_req(url, payload, headers)
示例#9
0
    def article_getTrees(self):
        url = "http://s2-api.smarket.net.cn/article/getTrees"

        payload = "{   \r\n    \"sess\":\"" + apicommon.bakSess + "\",\r\n    \"tenantId\": \"1116\",\r\n    \"moduleId\": \"1\",\r\n    \"instanceId\": \"38503\",\r\n    \"articleCategoryId\": \"102195\",\r\n    \"startTime\": \"2018-03-09\",\r\n    \"endTime\": \"2018-06-20\",\r\n    \"start\": 0,\r\n    \"num\": 20,\r\n    \"typeId\": \"2\",\r\n    \"_cache_with_cached\": \"1\",\r\n    \"_cache_refresh\": \"1\",\r\n    \"_cache_timeout\": \"60\"\r\n  }"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "be08b32e-383c-46d8-912c-5c06ef324575"
        }

        return apicommon.post_req(url, payload, headers)
示例#10
0
    def productLine_category_getCategoryTreeList(self):
        url = "http://s2-api.smarket.net.cn/productLine/category/getCategoryTreeList"

        payload = "{\r\n    \"productLineId\": 479,\r\n    \"_cache_with_cached\": \"1\",\r\n    \"_cache_refresh\": \"1\",\r\n    \"_cache_timeout\": \"60\"\r\n  }"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "d45ed040-bde6-443f-bcf9-adaa326584e7"
        }

        return apicommon.post_req(url, payload, headers)
示例#11
0
    def member_schema_field_sorting_GetList(self):
        url = "http://s2-api.smarket.net.cn/member/schema/field/sorting/GetList"

        payload = "{\r\n    \"tenantId\": \"1116\",\r\n    \"schemaId\": \"1116\",\r\n    \"loginIds\": [\r\n      1088668,\r\n      1088667\r\n    ],\r\n    \"_cache_with_cached\": \"1\",\r\n    \"_cache_refresh\": \"1\",\r\n    \"_cache_timeout\": \"60\"\r\n  }"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "0b33d875-89a9-4b7d-ae7c-931863aa6b0e"
        }

        return apicommon.post_req(url, payload, headers)
示例#12
0
    def articleCategory_getList(self):
        url = "http://s2-api.smarket.net.cn/articleCategory/getList"

        payload = "{\r\n    \"tenantId\": 1116,\r\n    \"moduleId\": \"\",\r\n    \"instanceId\": \"\",\r\n    \"isEnabled\": -1,\r\n    \"articleCategoryId\": 0,\r\n    \"_cache_with_cached\": \"1\",\r\n    \"_cache_refresh\": \"1\",\r\n    \"_cache_timeout\": \"60\"\r\n  }"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "6924e13f-4c94-42b9-b5c5-31a4e8f41787"
        }

        return apicommon.post_req(url, payload, headers)
示例#13
0
    def articleCategory_getSubList(self):
        url = "http://s2-api.smarket.net.cn/articleCategory/getSubList"

        payload = " {\r\n    \"articleCategoryId\": 102161,\r\n    \"_cache_with_cached\": \"1\",\r\n    \"_cache_refresh\": \"1\",\r\n    \"_cache_timeout\": \"60\"\r\n  }"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "83b766ce-d240-44f2-8cb9-d51cbe64fb49"
        }

        return apicommon.post_req(url, payload, headers)
示例#14
0
    def account_getAuthByInstance(self):
        url = "http://s2-api.smarket.net.cn/account/getAuthByInstance"

        payload = "{\r\n  \"instanceId\": 40837,\r\n  \"sess\": \"" + apicommon.bakSess + "\",\r\n  \"_cache_with_cached\":\"1\",\r\n  \"_cache_refresh\":\"1\",\r\n  \"_cache_timeout\":\"60\"\r\n}"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "04b5ed1e-b136-419b-864b-f7bec6c4d058"
        }

        return apicommon.post_req(url, payload, headers)
示例#15
0
    def account_channel_get(self):
        url = "http://s2-api.smarket.net.cn/account/channel/get"

        payload = "{\r\n  \"id\": \"38367\",\r\n  \"_cache_with_cached\":\"1\",\r\n  \"_cache_refresh\":\"1\",\r\n  \"_cache_timeout\":\"60\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "1dc6f17f-1bc4-4355-b569-cf24e09fc251"
        }

        return apicommon.post_req(url, payload, headers)
示例#16
0
    def member_identification_information_GetByOpenId(self):

        url = "http://s2-api.smarket.net.cn/member/identification/information/GetByOpenId"

        payload = " {\r\n    \"openId\": \"otYzet6sfobnSyeIdqLBUDk4szQk\",\r\n    \"tenantId\": \"1043\",\r\n    \"unionId\": \"\",\r\n    \"_cache_with_cached\": \"1\",\r\n    \"_cache_refresh\": \"1\",\r\n    \"_cache_timeout\": \"60\"\r\n  }"
        headers = {
            'Cache-Control': "no-cache",
            'Postman-Token': "e59f5a64-0bcc-4b3b-b46c-0686a0039c4a"
        }

        return apicommon.post_req(url, payload, headers)
示例#17
0
    def interaction_record(self):
        url = "http://s2-api.smarket.net.cn/member/interaction/record"

        payload = "{\r\n        \"tenantId\":198,\r\n        \"moduleId\": 0,\r\n        \"instanceId\": 0,\r\n        \"contactId\": 0,\r\n        \"cookieId\": \"817c4822639dfe314fada85204644011\",\r\n        \"openId\": \"\",\r\n        \"loginId\": 0,\r\n        \"memberId\": 0,\r\n        \"actionKey\": \"form_browse\",\r\n        \"objId\": 11880,\r\n        \"objTitle\": \"测试表单\", \r\n        \"signUserId\": 0,\r\n        \"ip\": \"\",\r\n        \"objectModuleId\": 0,\r\n        \"objectInstanceId\": 34248,\r\n        \"browseInfo\": \"string\",\r\n        \"weChatId\": 0,\r\n        \"sess\":\"\"\r\n    }"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "8e977830-7acb-419f-ac2a-41ad4b24200d"
        }

        return apicommon.post_req(url, payload, headers)
示例#18
0
    def account_getAuth(self):
        url = "http://s2-api.smarket.net.cn/account/getAuth"

        payload = "{\r\n  \"nodeId\": 40920,\r\n  \"sess\": \"" + apicommon.bakSess + "\",\r\n  \"instanceId\": 40920,\r\n  \"_cache_with_cached\":\"1\",\r\n  \"_cache_refresh\":\"1\",\r\n  \"_cache_timeout\":\"60\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "fb02b90f-afd9-4389-8c72-81c6186d7567"
        }

        return apicommon.post_req(url, payload, headers)
示例#19
0
    def member_getById(self):
        url = "http://s2-api.smarket.net.cn/member/getById"

        payload = "{\r\n  \"tenantId\": 1116,\r\n  \"memberId\": [\r\n    803868\r\n  ],\r\n\"sess\": \"" + apicommon.bakSess + "\",\r\n  \"_cache_with_cached\":\"1\",\r\n  \"_cache_refresh\":\"1\",\r\n  \"_cache_timeout\":\"60\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "32e1cce3-c5b7-4e4f-bbee-bba8e4c4c6d2"
        }

        return apicommon.post_req(url, payload, headers)
示例#20
0
    def member_form_view(self):
        url = "http://s2-api.smarket.net.cn/member/form/view"

        payload = "{\r\n  \"memberFormId\": \"6329\",\r\n  \"globalUserId\": \"39e5bd2a4a1c363d09b9fdd09323b3d8\",\r\n  \"url\": \"\",\r\n  \"referenceUrl\": \"\",\r\n  \"trackId\": \"0\",\r\n  \"openId\": \"\",\r\n  \"sess\": \"" + apicommon.forntSession + "\",\r\n  \"_cache_with_cached\":\"1\",\r\n  \"_cache_refresh\":\"1\",\r\n  \"_cache_timeout\":\"60\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "2747b77e-584e-4707-be3f-1cff081bbe42"
        }

        return apicommon.post_req(url, payload, headers)
示例#21
0
    def dic_params_getTree(self):
        url = "http://s2-api.smarket.net.cn/dic/params/getTree"

        payload = "{\r\n  \"tenantId\": 1116,\r\n  \"dicId\": \"484362\",\r\n  \"format\": \"object\",\r\n  \"_cache_with_cached\":\"1\",\r\n  \"_cache_refresh\":\"1\",\r\n  \"_cache_timeout\":\"60\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "1fa11902-e62f-4c85-93d7-ba1c66704e6a"
        }

        return apicommon.post_req(url, payload, headers)
示例#22
0
    def member_form_getTemplate(self):
        url = "http://s2-api.smarket.net.cn/member/form/getTemplate"

        payload = "{\r\n  \"memberFormId\": 6388,\r\n  \"trackId\": \"\",\r\n  \"_cache_with_cached\":\"1\",\r\n  \"_cache_refresh\":\"1\",\r\n  \"_cache_timeout\":\"60\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "de5dd4a3-2537-4ee8-ba7c-0b9fbd2a8c92"
        }

        return apicommon.post_req(url, payload, headers)
示例#23
0
    def interaction_getStatCountList(self):
        url = "http://s2-api.smarket.net.cn/interaction/getStatCountList"

        payload = "{\r\n  \"tenantId\": 1116,\r\n  \"instanceId\": 40837,\r\n  \"moduleType\": 3,\r\n  \"memberId\": 875941,\r\n  \"type\": \"project_browse\",\r\n  \"statType\": \"url\",\r\n  \"start\": 0,\r\n  \"num\": -1,\r\n  \"sess\": \"" + apicommon.bakSess + "\",\r\n  \"_cache_with_cached\":\"1\",\r\n  \"_cache_refresh\":\"1\",\r\n  \"_cache_timeout\":\"60\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "6c604cca-3bd3-47a3-97c2-13a51485540d"
        }

        return apicommon.post_req(url, payload, headers)
示例#24
0
    def interaction_getDetailList(self):
        url = "http://s2-api.smarket.net.cn/interaction/getDetailList"

        payload = "{\r\n  \"tenantId\": 1116,\r\n  \"instanceId\": 40837,\r\n  \"moduleType\": 3,\r\n  \"memberId\": 875941,\r\n  \"type\": \"post_create\",\r\n  \"start\": 0,\r\n  \"num\": -1,\r\n  \"_cache_with_cached\":\"1\",\r\n  \"_cache_refresh\":\"1\",\r\n  \"_cache_timeout\":\"60\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "a0a88607-6837-4dff-966e-e7fbd53dd5cc"
        }

        return apicommon.post_req(url, payload, headers)
示例#25
0
    def anonymous_checkSess(self):
        url = "http://s2-api.smarket.net.cn/anonymous/checkSess"

        payload = "{\r\n    \"sess\": \"" + apicommon.bakSess + "\"\r\n  }"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "0f7f346a-d0a2-4512-9cc5-6e23d03a2779"
        }

        return apicommon.post_req(url, payload, headers)
示例#26
0
    def member_loginByOpenId(self):
        url = "http://s2-api.smarket.net.cn/member/loginByOpenId"

        payload = " {\r\n    \"schemaId\": 4997,\r\n    \"wechatId\": \"38503\",\r\n    \"openId\": \"otqO01CM74B9qQ2ZFwGiglaZFxzg\",\r\n    \"clientType\": \"\",\r\n    \"clientBrand\": \"\",\r\n    \"clientVersion\": \"\",\r\n    \"platform\": \"\",\r\n    \"_cache_with_cached\": \"1\",\r\n    \"_cache_refresh\": \"1\",\r\n    \"_cache_timeout\": \"60\"\r\n  }"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "44ee07aa-a460-4a80-a3f4-6f959b1810fe"
        }

        return apicommon.post_req(url, payload, headers)
示例#27
0
    def member_checkUnique(self):
        url = "http://s2-api.smarket.net.cn/member/checkUnique"

        payload = "{\r\n    \"memberSchemaId\": \"1116\",\r\n    \"unique\": \"13393213135\",\r\n    \"fieldName\": \"mobil\",\r\n    \"_cache_with_cached\": \"1\",\r\n    \"_cache_refresh\": \"1\",\r\n    \"_cache_timeout\": \"60\"\r\n  }"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "df143fd9-0534-4952-9148-d53115d408f4"
        }

        return apicommon.post_req(url, payload, headers)
示例#28
0
    def member_geneGet(self):
        url = "http://s2-api.smarket.net.cn/member/geneGet"

        payload = "{\r\n\"sess\": \"" + apicommon.forntSession + "\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "3137a01b-97e0-4c77-9b98-7342bd111670"
        }

        return apicommon.post_req(url, payload, headers)
示例#29
0
    def collect_search(self):
        url = "http://s2-api.smarket.net.cn/collect/search"

        payload = "{\r\n  \"start\": 1,\r\n  \"num\": 1,\r\n  \"sort\": 1,\r\n  \"r\": {\r\n    \"application\": \"luckDraw\",\r\n    \"cookieId\": \"cookieId\",\r\n    \"openId\": \"openId\",\r\n    \"type\": \"\",\r\n    \"objectId\": \"20\"\r\n  },\r\n  \"sess\": \"" + apicommon.bakSess + "\",\r\n  \"_cache_with_cached\":\"1\",\r\n  \"_cache_refresh\":\"1\",\r\n  \"_cache_timeout\":\"60\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "e496b517-dc3d-46f8-89e0-4245d3eac23c"
        }

        return apicommon.post_req(url, payload, headers)
示例#30
0
    def member_form_search(self):
        url = "http://s2-api.smarket.net.cn/member/form/search"

        payload = "{\r\n  \"tenantId\": \"1116\",\r\n  \"schemaId\": \"\",\r\n  \"formId\": \"\",\r\n  \"trackId\": \"\",\r\n  \"keyword\": \"\",\r\n  \"start\": \"0\",\r\n  \"num\": \"12\"\r\n}"
        headers = {
            'Content-Type': "application/json",
            'Cache-Control': "no-cache",
            'Postman-Token': "6548662b-6149-484e-b226-ea58d874ccae"
        }

        return apicommon.post_req(url, payload, headers)