Difference between revisions of "Nokia Friend View"

From rukapedia
Jump to: navigation, search
Line 10: Line 10:
  
 
<pre>
 
<pre>
curl -D - -d "j_username=USERNAME&j_password=PASSWORD" https://friendview.nokia.com/j_acegi_security_check
+
curl -L -c friendview-cookies.txt -D - -d "j_username=USERNAME&j_password=PASSWORD" https://friendview.nokia.com/j_acegi_security_check  
 
</pre>
 
</pre>
  
you get back:
+
you will get returned, on success, an HTML document out of which you can parse a Session Token:
  
 
<pre>
 
<pre>
HTTP/1.1 302 Moved Temporarily
+
<script>sessionToken='55b5509d793faedd'</script>
Date: Wed, 05 Nov 2008 22:06:04 GMT
 
Server: Apache-Coyote/1.1
 
Location: https://friendview.nokia.com/map.jsp;jsessionid=XXXXXXXXXXXXXXXXXXXXXXXXX
 
Content-Length: 0
 
Set-Cookie: JSESSIONID=XXXXXXXXXXXXXXXXXXXXXXXXX; Path=/
 
Content-Type: text/plain; charset=UTF-8
 
 
</pre>
 
</pre>
  
=== Posting ===
+
=== Posting Status Updates ===
  
Status updates are HTTP POSTed to:
+
Once you have authenticated, status updates can be sent by HTTP POST to:
  
 
https://friendview.nokia.com/Map.action?postStatusMessage
 
https://friendview.nokia.com/Map.action?postStatusMessage
Line 34: Line 28:
  
 
* messageText - the text of the status update
 
* messageText - the text of the status update
 +
* sessionToken - the value of the sessionToken parsed as above

Revision as of 19:59, 5 November 2008

Nokia Friend View is an experimental micro-blogging tool with integrated location features.

Technical Specifications

(This information is preliminary and unofficial).

Authentication

If you POST with username and password:

curl -L -c friendview-cookies.txt -D - -d "j_username=USERNAME&j_password=PASSWORD" https://friendview.nokia.com/j_acegi_security_check 

you will get returned, on success, an HTML document out of which you can parse a Session Token:

<script>sessionToken='55b5509d793faedd'</script>

Posting Status Updates

Once you have authenticated, status updates can be sent by HTTP POST to:

https://friendview.nokia.com/Map.action?postStatusMessage

with the following parameters:

  • messageText - the text of the status update
  • sessionToken - the value of the sessionToken parsed as above