private String getParams() { String appId = AppConfig.getAPPid(); String grantType = "authorization_code"; String code = mAuthorizeCode; String time = TimeParser.GetTimeStamp(DateTime.Now); List <System.String> array = new List <System.String>(); string APPsecret = AppConfig.getAPPsecret(); array.Add(APPsecret); array.Add(appId); array.Add(grantType); array.Add(code); array.Add(time); String checkSum = SHAUtils.getSHACode(array.ToArray()); StringBuilder sb = new StringBuilder(); sb.Append("?app_id=" + appId); sb.Append("&grant_type=" + grantType); sb.Append("&code=" + code); sb.Append("×tamp=" + time); sb.Append("&checksum=" + checkSum); return(sb.ToString()); }
private String getParams() { StringBuilder sb = new StringBuilder(); String appId = AppConfig.getAPPid(); sb.Append("?app_id=" + appId); String scope = ""; sb.Append("&scope=" + scope); String state = "12345678"; sb.Append("&state=" + state); String responseType = "code"; sb.Append("&response_type=" + responseType); String time = TimeParser.GetTimeStamp(DateTime.Now); sb.Append("×tamp=" + time); List <System.String> array = new List <System.String>(); string APPsecret = AppConfig.getAPPsecret(); array.Add(APPsecret); array.Add(appId); array.Add(responseType); array.Add(time); array.Add(state); array.Add(scope); sb.Append("&checksum=" + SHAUtils.getSHACode(array.ToArray())); return(sb.ToString()); }
protected string getParams() { String appId = AppConfig.getAPPid(); String time = TimeParser.GetTimeStamp(DateTime.Now); List <System.String> array = new List <System.String>(); string APPsecret = AppConfig.getAPPsecret(); array.Add(APPsecret); array.Add(appId); array.Add(mAcessTokenandOpendid.acessToken); array.Add(time); String checkSum = SHAUtils.getSHACode(array.ToArray()); StringBuilder sb = new StringBuilder(); sb.Append("?app_id=" + appId); sb.Append("&acess_token=" + mAcessTokenandOpendid.acessToken); sb.Append("×tamp=" + time); sb.Append("&checksum=" + checkSum); return(sb.ToString()); }