400 Error Getting Token

400 Error Getting Token

Postby cpalmer » Sat Jan 28, 2017 10:01 am

Friends!

I can't seem to get the token back from the api I get a bad request.

I am using java and a basic header at this point since its the token request.
TokenRequest tr = new TokenRequest("username","password");
RestTemplate restTemplate = new RestTemplate();
restTemplate.postForObject("https://json.schedulesdirect.org/20141201/token",tokenRequest,TokenResponse.class);

Anyway that the basic code. I can call this api no problem with the default built in rest client I have in the IDE.

I am pretty stumped and can't figure out what needs to be in the header since my built in rest client has one item in header. Accept: */*

Anyone have any ideas?
Thanks,
Chris
cpalmer
 
Posts: 3
Joined: Sat Jan 28, 2017 9:29 am

Re: 400 Error Getting Token

Postby cpalmer » Sat Jan 28, 2017 6:35 pm

I got it resolved there was a slight mistake in my password.

I can get a token programatically now which is great. Need to move on to grabbing.

thanks,
cpalmer
 
Posts: 3
Joined: Sat Jan 28, 2017 9:29 am


Return to Developer

Who is online

Users browsing this forum: No registered users and 3 guests