import os
import urllib2

url1 = "https://api1.mimikko.cn/client/love/ExchangeReward?code="+os.environ["servant"]
url2 = "&AppID=wjB7LOP2sYkaMGLC&Version=3.1.2&Authorization="+os.environ["mimikko_data"]

req = urllib2.Request(url1+url2)

res_data = urllib2.urlopen(req)
res = res_data.read()
print res

url = "https://api1.mimikko.cn/client/RewardRuleInfo/SignAndSignInformationV3?AppID=wjB7LOP2sYkaMGLC"
header = {"Authorization":os.environ["mimikko_data"],"Version":"3.1.2"}

req = urllib2.Request(url,headers=header)

res_data = urllib2.urlopen(req)
res = res_data.read()
print res
