Getting 404 error while implementing login kite

guna
Hello kite support team I have implemented alll the steps you given

I'm getting the error 404

I have attachment screenshot of my code

Kindly advice how to resolve this

Code I wrote below

String token = str.split("request_token")[1].replaceAll("=", "");
String hashableText = ConstantStore.KITE_API_KEY + token + ConstantStore.KITE_API_SEC_KEY;
String sha256hex = CommonUtils.sha256(hashableText);


public static String sha256(String base) {
try {
MessageDigest digest = MessageDigest.getInstance("SHA-256");
byte[] hash = digest.digest(base.getBytes("UTF-8"));
StringBuilder hexString = new StringBuilder();
for (byte aHash : hash) {
String hex = Integer.toHexString(0xff & aHash);
if (hex.length() == 1) {
hexString.append('0');
}
hexString.append(hex);
}
return hexString.toString();
} catch (Exception ex) {
throw new RuntimeException(ex);
}
}

@Headers("Content-Type: application/json")
@FormUrlEncoded
@PUT("/session/token")
Call verifyUser(@FieldMap(encoded = true) Map params);
Sign In or Register to comment.