Shell

array="rbwm-api.abc com.hk abc.com.hk"

proxyurl=http://int.hk.abc:8080

clid=
clis=

clid2=
clis2=


#WeChat Bidning PA
echo wer APIs
pUrl=cmb-gg-g-pa-hgf-binding-cert-proxy/v5


#1 wechat-binding
for s in ${array[@]};do
echo api: https://$s/$pUrl/wechat-binding
echo command: curl -H "Content-type: application/json" -H "client_id:$clid" -H "client_secret:$clis" -H "client_id2:$clid2" -H "client_secret2:$clis2" -X PUT -d \'{"header": {"userName": "HKHASE239520539883PU0000","localeLanguage": "en","localeCountry": "US","clntId": "0000060407","clntHostId": "J1AP055","globlLogId": "5795406372","msgInstcId": "5356743119","userDviceId": "172.21.252.1","inbndChanlId": "2001","sessnId": "8774632754","isEcareUserFlag": "N","emplyUserId": "HKHASE239520539883PU0000","primaryConsumerId": "HKHASE239520539883","changableConsumerId": "HKHASE239520539883"},"delvrtChnlFiltr": {"bibId": "HKHASE239520539883PU0000","dlvChannel": "1","openId": "oVbZQwMkdcvi08T11HflMMVyckvd","actnType": "U","dlvNotfyIdc": "N","userAgentType": "desktop"}}\' https://$s/$pUrl/wechat-binding -k -x $proxyurl
echo -n result :
curl -H "Content-type: application/json" -H "client_id:$clid" -H "client_secret:$clis" -H "client_id2:$clid2" -H "client_secret2:$clis2" -X PUT -d '{"header": {"userName": "HKHASE239520539883PU0000","localeLanguage": "en","localeCountry": "US","clntId": "0000060407","clntHostId": "J1AP055","globlLogId": "5795406372","msgInstcId": "5356743119","userDviceId": "172.21.252.1","inbndChanlId": "2001","sessnId": "8774632754","isEcareUserFlag": "N","emplyUserId": "HKHASE239520539883PU0000","primaryConsumerId": "HKHASE239520539883","changableConsumerId": "HKHASE239520539883"},"delvrtChnlFiltr": {"bibId": "HKHASE239520539883PU0000","dlvChannel": "1","openId": "oVbZQwMkdcvi08T11HflMMVyckvd","actnType": "U","dlvNotfyIdc": "N","userAgentType": "desktop"}}' https://$s/$pUrl/wechat-binding -k -x $proxyurl
printf "\n"
done

#2 wechat-binding/retrieve-wechat-binding
for s in ${array[@]};do
echo api: https://$s/$pUrl/wechat-binding/retrieve-wechat-binding
echo command: curl -H "Content-type: application/json" -H "client_id:$clid" -H "client_secret:$clis" -H "client_id2:$clid2" -H "client_secret2:$clis2" -X POST -d \'{"header": {"userName": "HKHASE239520539883PU0000","localeLanguage": "en","localeCountry": "US","clntId": "0000060407","clntHostId": "J1AP055","globlLogId": "5795406372","msgInstcId": "5356743119","userDviceId": "172.21.252.1","inbndChanlId": "2001","sessnId": "8774632754","emplyUserId": "HKHASE239520539883PU0000","primaryConsumerId": "HKHASE239520539883","changableConsumerId": "HKHASE239520539883"},"delvrtChnlFiltr": {"dlvChannel": "1"}}\' https://$s/$pUrl/wechat-binding/retrieve-wechat-binding -k -x $proxyurl
echo -n result :
curl -H "Content-type: application/json" -H "client_id:$clid" -H "client_secret:$clis" -H "client_id2:$clid2" -H "client_secret2:$clis2" -X POST -d '{"header": {"userName": "HKHASE239520539883PU0000","localeLanguage": "en","localeCountry": "US","clntId": "0000060407","clntHostId": "J1AP055","globlLogId": "5795406372","msgInstcId": "5356743119","userDviceId": "172.21.252.1","inbndChanlId": "2001","sessnId": "8774632754","emplyUserId": "HKHASE239520539883PU0000","primaryConsumerId": "HKHASE239520539883","changableConsumerId": "HKHASE239520539883"},"delvrtChnlFiltr": {"dlvChannel": "1"}}' https://$s/$pUrl/wechat-binding/retrieve-wechat-binding -k -x $proxyurl
printf "\n"
done

#3 wechat-binding/validate-delivery-channel
for s in ${array[@]};do
echo api: https://$s/$pUrl/wechat-binding/validate-delivery-channel
echo command: curl -H "Content-type: application/json" -H "client_id:$clid" -H "client_secret:$clis" -H "client_id2:$clid2" -H "client_secret2:$clis2" -X POST -d \'{"header": {"userName": "HKHASE239520539883PU0000","localeLanguage": "en","localeCountry": "US","clntId": "0000060407","clntHostId": "J1AP055","globlLogId": "5795406372","msgInstcId": "5356743119","userDviceId": "172.21.252.1","inbndChanlId": "2001","sessnId": "8774632754","emplyUserId": "HKHASE239520539883PU0000","primaryConsumerId": "HKHASE239520539883","changableConsumerId": "HKHASE239520539883"},"delvrtChnlFiltr": {"bibId": "HKHASE239520539883PU0000","dlvChannel": "1","openId": "oVbZQwMkdcvi08T11HflMMVyckvd","actnType": "M","dlvNotfyIdc": "Y"}}\' https://$s/$pUrl/wechat-binding/validate-delivery-channel -k -x $proxyurl
echo -n result :
curl -H "Content-type: application/json" -H "client_id:$clid" -H "client_secret:$clis" -H "client_id2:$clid2" -H "client_secret2:$clis2" -X POST -d '{"header": {"userName": "HKHASE239520539883PU0000","localeLanguage": "en","localeCountry": "US","clntId": "0000060407","clntHostId": "J1AP055","globlLogId": "5795406372","msgInstcId": "5356743119","userDviceId": "172.21.252.1","inbndChanlId": "2001","sessnId": "8774632754","emplyUserId": "HKHASE239520539883PU0000","primaryConsumerId": "HKHASE239520539883","changableConsumerId": "HKHASE239520539883"},"delvrtChnlFiltr": {"bibId": "HKHASE239520539883PU0000","dlvChannel": "1","openId": "oVbZQwMkdcvi08T11HflMMVyckvd","actnType": "M","dlvNotfyIdc": "Y"}}' https://$s/$pUrl/wechat-binding/validate-delivery-channel -k -x $proxyurl
printf "\n"
done

#4 otp-notifications
for s in ${array[@]};do
echo api: https://$s/$pUrl/otp-notifications
echo command: curl -H "Content-type: application/json" -H "client_id:$clid" -H "client_secret:$clis" -H "client_id2:$clid2" -H "client_secret2:$clis2" -X POST -d \'{"header": {"userName": "HKHASE239520539883PU0000","clntId": "0000060407","clntHostId": "J1AP055","userDviceId": "172.21.252.1","GloblLogId": "1484046500348187","MsgInstcId": "0000000071","inbndChanlId": "2001","sessnId": "8774632754","localeLanguage": "en","localeCountry": "US","primaryConsumerId": "HKHASE239520539883","changableConsumerId": "HKHASE239520539883PU0000","isEcareUserFlag": "N"},"otpValidateStatu": {"tg59459": "S"},"locale": "en-US"}\' https://$s/$pUrl/otp-notifications -k -x $proxyurl
echo -n result :
curl -H "Content-type: application/json" -H "client_id:$clid" -H "client_secret:$clis" -H "client_id2:$clid2" -H "client_secret2:$clis2" -X POST -d '{"header": {"userName": "HKHASE239520539883PU0000","clntId": "0000060407","clntHostId": "J1AP055","userDviceId": "172.21.252.1","GloblLogId": "1484046500348187","MsgInstcId": "0000000071","inbndChanlId": "2001","sessnId": "8774632754","localeLanguage": "en","localeCountry": "US","primaryConsumerId": "HKHASE239520539883","changableConsumerId": "HKHASE239520539883PU0000","isEcareUserFlag": "N"},"otpValidateStatu": {"tg59459": "S"},"locale": "en-US"}' https://$s/$pUrl/otp-notifications -k -x $proxyurl
printf "\n"
done

。。。。。。。。。。。。。。。。。。。。。。。。。。。

 

WeChatBinding APIs
api: https://baidu.com/crt-at-binding-prod-proxy/v8/wechat-binding
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X PUT -d '{header: {userName: HKHASE239520539883PU0000,localeLanguage: en,localeCountry: US,clntId: 0000060407,clntHostId: J1AP055,globlLogId: 5795406372,msgInstcId: 5356743119,userDviceId: 172.21.252.1,inbndChanlId: 2001,sessnId: 8774632754,isEcareUserFlag: N,emplyUserId: HKHASE239520539883PU0000,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883},delvrtChnlFiltr: {bibId: HKHASE239520539883PU0000,dlvChannel: 1,openId: oVbZQwMkdcvi08T11HflMMVyckvd,actnType: U,dlvNotfyIdc: N,userAgentType: desktop}}' https://baidu.com/crt-at-binding-prod-proxy/v8/wechat-binding -k -x http://intpxy1.hk.hsbc:8080
result :{"Status":"error","ProcessException":"true","rtrnCde":"16","responseCode":"99999"}
api: https://google.com/crt-at-binding-prod-proxy/v8/wechat-binding
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X PUT -d '{header: {userName: HKHASE239520539883PU0000,localeLanguage: en,localeCountry: US,clntId: 0000060407,clntHostId: J1AP055,globlLogId: 5795406372,msgInstcId: 5356743119,userDviceId: 172.21.252.1,inbndChanlId: 2001,sessnId: 8774632754,isEcareUserFlag: N,emplyUserId: HKHASE239520539883PU0000,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883},delvrtChnlFiltr: {bibId: HKHASE239520539883PU0000,dlvChannel: 1,openId: oVbZQwMkdcvi08T11HflMMVyckvd,actnType: U,dlvNotfyIdc: N,userAgentType: desktop}}' https://google.com/crt-at-binding-prod-proxy/v8/wechat-binding -k -x http://intpxy1.hk.hsbc:8080
result :{"Status":"error","ProcessException":"true","rtrnCde":"16","responseCode":"99999"}
api: https://alibaba.com/crt-at-binding-prod-proxy/v8/wechat-binding
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X PUT -d '{header: {userName: HKHASE239520539883PU0000,localeLanguage: en,localeCountry: US,clntId: 0000060407,clntHostId: J1AP055,globlLogId: 5795406372,msgInstcId: 5356743119,userDviceId: 172.21.252.1,inbndChanlId: 2001,sessnId: 8774632754,isEcareUserFlag: N,emplyUserId: HKHASE239520539883PU0000,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883},delvrtChnlFiltr: {bibId: HKHASE239520539883PU0000,dlvChannel: 1,openId: oVbZQwMkdcvi08T11HflMMVyckvd,actnType: U,dlvNotfyIdc: N,userAgentType: desktop}}' https://alibaba.com/crt-at-binding-prod-proxy/v8/wechat-binding -k -x http://intpxy1.hk.hsbc:8080
result :{"Status":"error","ProcessException":"true","rtrnCde":"16","responseCode":"99999"}
api: https://baidu.com/crt-at-binding-prod-proxy/v8/wechat-binding/retrieve-wechat-binding
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X POST -d '{header: {userName: HKHASE239520539883PU0000,localeLanguage: en,localeCountry: US,clntId: 0000060407,clntHostId: J1AP055,globlLogId: 5795406372,msgInstcId: 5356743119,userDviceId: 172.21.252.1,inbndChanlId: 2001,sessnId: 8774632754,emplyUserId: HKHASE239520539883PU0000,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883},delvrtChnlFiltr: {dlvChannel: 1}}' https://baidu.com/crt-at-binding-prod-proxy/v8/wechat-binding/retrieve-wechat-binding -k -x http://intpxy1.hk.hsbc:8080
result :{"responseCode":"000","status":1,"dlvChnlExstFlg":"N","dlvNotfyInd":"","dlvId":""}
api: https://google.com/crt-at-binding-prod-proxy/v8/wechat-binding/retrieve-wechat-binding
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X POST -d '{header: {userName: HKHASE239520539883PU0000,localeLanguage: en,localeCountry: US,clntId: 0000060407,clntHostId: J1AP055,globlLogId: 5795406372,msgInstcId: 5356743119,userDviceId: 172.21.252.1,inbndChanlId: 2001,sessnId: 8774632754,emplyUserId: HKHASE239520539883PU0000,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883},delvrtChnlFiltr: {dlvChannel: 1}}' https://google.com/crt-at-binding-prod-proxy/v8/wechat-binding/retrieve-wechat-binding -k -x http://intpxy1.hk.hsbc:8080
result :{"responseCode":"000","status":1,"dlvChnlExstFlg":"N","dlvNotfyInd":"","dlvId":""}
api: https://alibaba.com/crt-at-binding-prod-proxy/v8/wechat-binding/retrieve-wechat-binding
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X POST -d '{header: {userName: HKHASE239520539883PU0000,localeLanguage: en,localeCountry: US,clntId: 0000060407,clntHostId: J1AP055,globlLogId: 5795406372,msgInstcId: 5356743119,userDviceId: 172.21.252.1,inbndChanlId: 2001,sessnId: 8774632754,emplyUserId: HKHASE239520539883PU0000,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883},delvrtChnlFiltr: {dlvChannel: 1}}' https://alibaba.com/crt-at-binding-prod-proxy/v8/wechat-binding/retrieve-wechat-binding -k -x http://intpxy1.hk.hsbc:8080
result :{"responseCode":"000","status":1,"dlvChnlExstFlg":"N","dlvNotfyInd":"","dlvId":""}
api: https://baidu.com/crt-at-binding-prod-proxy/v8/wechat-binding/validate-delivery-channel
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X POST -d '{header: {userName: HKHASE239520539883PU0000,localeLanguage: en,localeCountry: US,clntId: 0000060407,clntHostId: J1AP055,globlLogId: 5795406372,msgInstcId: 5356743119,userDviceId: 172.21.252.1,inbndChanlId: 2001,sessnId: 8774632754,emplyUserId: HKHASE239520539883PU0000,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883},delvrtChnlFiltr: {bibId: HKHASE239520539883PU0000,dlvChannel: 1,openId: oVbZQwMkdcvi08T11HflMMVyckvd,actnType: M,dlvNotfyIdc: Y}}' https://baidu.com/crt-at-binding-prod-proxy/v8/wechat-binding/validate-delivery-channel -k -x http://intpxy1.hk.hsbc:8080
result :{"validateStatus":1}
api: https://google.com/crt-at-binding-prod-proxy/v8/wechat-binding/validate-delivery-channel
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X POST -d '{header: {userName: HKHASE239520539883PU0000,localeLanguage: en,localeCountry: US,clntId: 0000060407,clntHostId: J1AP055,globlLogId: 5795406372,msgInstcId: 5356743119,userDviceId: 172.21.252.1,inbndChanlId: 2001,sessnId: 8774632754,emplyUserId: HKHASE239520539883PU0000,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883},delvrtChnlFiltr: {bibId: HKHASE239520539883PU0000,dlvChannel: 1,openId: oVbZQwMkdcvi08T11HflMMVyckvd,actnType: M,dlvNotfyIdc: Y}}' https://google.com/crt-at-binding-prod-proxy/v8/wechat-binding/validate-delivery-channel -k -x http://intpxy1.hk.hsbc:8080
result :{"validateStatus":1}
api: https://alibaba.com/crt-at-binding-prod-proxy/v8/wechat-binding/validate-delivery-channel
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X POST -d '{header: {userName: HKHASE239520539883PU0000,localeLanguage: en,localeCountry: US,clntId: 0000060407,clntHostId: J1AP055,globlLogId: 5795406372,msgInstcId: 5356743119,userDviceId: 172.21.252.1,inbndChanlId: 2001,sessnId: 8774632754,emplyUserId: HKHASE239520539883PU0000,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883},delvrtChnlFiltr: {bibId: HKHASE239520539883PU0000,dlvChannel: 1,openId: oVbZQwMkdcvi08T11HflMMVyckvd,actnType: M,dlvNotfyIdc: Y}}' https://alibaba.com/crt-at-binding-prod-proxy/v8/wechat-binding/validate-delivery-channel -k -x http://intpxy1.hk.hsbc:8080
result :{"validateStatus":1}
api: https://baidu.com/crt-at-binding-prod-proxy/v8/otp-notifications
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X POST -d '{header: {userName: HKHASE239520539883PU0000,clntId: 0000060407,clntHostId: J1AP055,userDviceId: 172.21.252.1,GloblLogId: 1484046500348187,MsgInstcId: 0000000071,inbndChanlId: 2001,sessnId: 8774632754,localeLanguage: en,localeCountry: US,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883PU0000,isEcareUserFlag: N},otpValidateStatu: {tg59459: S},locale: en-US}' https://baidu.com/crt-at-binding-prod-proxy/v8/otp-notifications -k -x http://intpxy1.hk.hsbc:8080
result :{"Status":"error","ProcessException":"true","rtrnCde":"16","responseCode":"99999"}
api: https://google.com/crt-at-binding-prod-proxy/v8/otp-notifications
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X POST -d '{header: {userName: HKHASE239520539883PU0000,clntId: 0000060407,clntHostId: J1AP055,userDviceId: 172.21.252.1,GloblLogId: 1484046500348187,MsgInstcId: 0000000071,inbndChanlId: 2001,sessnId: 8774632754,localeLanguage: en,localeCountry: US,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883PU0000,isEcareUserFlag: N},otpValidateStatu: {tg59459: S},locale: en-US}' https://google.com/crt-at-binding-prod-proxy/v8/otp-notifications -k -x http://intpxy1.hk.hsbc:8080
result :{"Status":"error","ProcessException":"true","rtrnCde":"16","responseCode":"99999"}
api: https://alibaba.com/crt-at-binding-prod-proxy/v8/otp-notifications
command: curl -H Content-type: application/json -H client_id:123456789 -H client_secret:9876543210 -H client_id2:123456789 -H client_secret2:9876543210 -X POST -d '{header: {userName: HKHASE239520539883PU0000,clntId: 0000060407,clntHostId: J1AP055,userDviceId: 172.21.252.1,GloblLogId: 1484046500348187,MsgInstcId: 0000000071,inbndChanlId: 2001,sessnId: 8774632754,localeLanguage: en,localeCountry: US,primaryConsumerId: HKHASE239520539883,changableConsumerId: HKHASE239520539883PU0000,isEcareUserFlag: N},otpValidateStatu: {tg59459: S},locale: en-US}' https://alibaba.com/crt-at-binding-prod-proxy/v8/otp-notifications -k -x http://intpxy1.hk.hsbc:8080
result :{"Status":"error","ProcessException":"true","rtrnCde":"16","responseCode":"99999"}

posted @ 2018-07-16 10:51  SpringMVCMaven  阅读(156)  评论(0编辑  收藏  举报