authorize

51 views
Skip to first unread message

aleksey pechenin

unread,
Aug 23, 2015, 3:53:13 PM8/23/15
to Draugiem.lv API developer group
I am try to autorize user from my server, from ruby lang.


and got this

<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n

what am I doing wrong? 

any help, thanx&

Ingus Rūķis

unread,
Aug 24, 2015, 2:17:37 AM8/24/15
to draug...@googlegroups.com
Hi, 

A couple of things that could help to resolve this:

1) You can follow the redirect when making the request 
2) Due to the fact that the redirect in fact is redirecting you from /json to /json/  you can just change the link to https://api.draugiem.lv/json/?app=x.. to avoid redirect (<--- recommended)
3) Make sure you add a question mark after json/, currently it is missing, but I believe that's a minor typo just in the e-mail not in the actual code.

Ingus

--
You received this message because you are subscribed to the Google Groups "Draugiem.lv API developer group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to draugiemapi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Ingus Rūķis Mapon izstrādes daļas vadītājs / CTO
+371 26577422
Ziedleju 1, Mārupe, Mārupes nov., LV-2167, Latvija skatīt kartē
skype: ingus.rukis

aleksey pechenin

unread,
Aug 24, 2015, 4:39:59 AM8/24/15
to Draugiem.lv API developer group
its work!
thank you very much!

понедельник, 24 августа 2015 г., 9:17:37 UTC+3 пользователь Ingus Rūķis написал:
Reply all
Reply to author
Forward
0 new messages