|
|
|
@ -13,7 +13,6 @@ 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;
|
|
|
|
@ -21,6 +20,7 @@ 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,7 +657,9 @@ public class ProducteevInvoker {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sigBuilder.append(apiSecret);
|
|
|
|
sigBuilder.append(apiSecret);
|
|
|
|
String signature = DigestUtils.md5Hex(sigBuilder.toString());
|
|
|
|
MD5 md5 = new MD5();
|
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|