|
|
|
@ -13,6 +13,7 @@ import java.util.ArrayList;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.Comparator;
|
|
|
|
import java.util.Comparator;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.codec.digest.DigestUtils;
|
|
|
|
import org.json.JSONArray;
|
|
|
|
import org.json.JSONArray;
|
|
|
|
import org.json.JSONException;
|
|
|
|
import org.json.JSONException;
|
|
|
|
import org.json.JSONObject;
|
|
|
|
import org.json.JSONObject;
|
|
|
|
@ -20,7 +21,6 @@ import org.json.JSONObject;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
|
|
|
|
|
|
|
import com.todoroo.andlib.utility.Pair;
|
|
|
|
import com.todoroo.andlib.utility.Pair;
|
|
|
|
import com.twmacinta.util.MD5;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("nls")
|
|
|
|
@SuppressWarnings("nls")
|
|
|
|
public class ProducteevInvoker {
|
|
|
|
public class ProducteevInvoker {
|
|
|
|
@ -657,9 +657,7 @@ public class ProducteevInvoker {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sigBuilder.append(apiSecret);
|
|
|
|
sigBuilder.append(apiSecret);
|
|
|
|
MD5 md5 = new MD5();
|
|
|
|
String signature = DigestUtils.md5Hex(sigBuilder.toString());
|
|
|
|
md5.Update(sigBuilder.toString(), null);
|
|
|
|
|
|
|
|
String signature = md5.asHex();
|
|
|
|
|
|
|
|
requestBuilder.append("api_sig").append('=').append(signature);
|
|
|
|
requestBuilder.append("api_sig").append('=').append(signature);
|
|
|
|
return requestBuilder.toString();
|
|
|
|
return requestBuilder.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|