[REQUEST] Retrieving info from MSN Groups |
Author: |
Message: |
TPCDel
New Member
Posts: 6
Joined: Nov 2006
|
O.P. [REQUEST] Retrieving info from MSN Groups
|
|
11-22-2006 04:27 PM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
Joined: Mar 2003
|
RE: [REQUEST] Retrieving info from MSN Groups
I'll try to whip something up.
EDIT: I'm having a little trouble with the ajax request not sure what I did wrong, but I can't get a response
This post was edited on 11-22-2006 at 05:36 PM by Ezra.
|
|
11-22-2006 04:47 PM |
|
|
TPCDel
New Member
Posts: 6
Joined: Nov 2006
|
O.P. RE: [REQUEST] Retrieving info from MSN Groups
Oh OK
I dont really know what that means, The code I showed was taking from a mIRC script addon where someone would type !members in the chatroom an dit would tell us the members.
Also you need to be a member of the group to view how many members, im not sure how would you make that connect with the group name, perhaps use the current email and view it via that way.
|
|
11-22-2006 05:49 PM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
Joined: Mar 2003
|
RE: [REQUEST] Retrieving info from MSN Groups
This is how I did it:
code: function groups(sGroup)
{
ajax.open("GET","http://groups.msn.com/" + sGroup + "/_members.msnw?action=member_admin&type=MEM", true, username, password);
ajax.onreadystatechange = getmembers;
ajax.send(null);
}
function getmembers()
{
if (ajax.readyState == 4)
{
var strGroups = ajax.responseText;
//var strMembers = strGroups.match(/Current\smembers\s\(([0-9]+)\)/i);
var strMembers = strGroups.match(/Huidige\sleden\s\(([0-9]+)\)/i);
Debug.Trace("strGroups: " + strGroups);
//Debug.Trace("strMembers: " + strMembers[1]);
if (strMembers != null)
{
Messenger.MyName = strMembers[1];
}
else
{
MsgPlus.DisplayToast("MsnGroups Members", "Failed to update name");
}
}
}
And that has worked perfectly well on other websites, but it won't give a response
|
|
11-22-2006 05:59 PM |
|
|
TPCDel
New Member
Posts: 6
Joined: Nov 2006
|
O.P. RE: [REQUEST] Retrieving info from MSN Groups
Hmmm.. Well as I say you need to be a member of the group to view how many members. So perhaps if you included the passport im logged in with, so it checks if its a member and views it that way?
I know im asking alot.
Edit: Do you want my MSN group link?
This post was edited on 11-22-2006 at 06:03 PM by TPCDel.
|
|
11-22-2006 06:02 PM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
Joined: Mar 2003
|
RE: [REQUEST] Retrieving info from MSN Groups
Nah, that's ok, i'm using my group to test, but I don't think I can log in with xmlhttprequest.
Or someone else would know a way?
|
|
11-22-2006 06:12 PM |
|
|
TPCDel
New Member
Posts: 6
Joined: Nov 2006
|
O.P. RE: [REQUEST] Retrieving info from MSN Groups
Oh OK
So do we wait? :\
|
|
11-22-2006 06:16 PM |
|
|
Plik
Veteran Member
Posts: 1489 Reputation: 46
35 / / –
Joined: Jun 2004
|
RE: [REQUEST] Retrieving info from MSN Groups
quote: Originally posted by Ezra
Nah, that's ok, i'm using my group to test, but I don't think I can log in with xmlhttprequest.
Or someone else would know a way?
You should be able to send a cookies header in the request. But getting the cookie value would envolve either the user inputing their cookie data, or some dummy form submission with the request object.
And perhaps the problem with your request is "/_members.msnw?action=member_admin &type=MEM"
|
|
11-22-2006 07:04 PM |
|
|
TPCDel
New Member
Posts: 6
Joined: Nov 2006
|
O.P. RE: [REQUEST] Retrieving info from MSN Groups
Ohhhhh well spotted, sorry.
Heres the link
http://groups.msn.com/" + sGroup + "/_members.msnw?action=member_list&type=MEM
|
|
11-22-2006 07:14 PM |
|
|
TPCDel
New Member
Posts: 6
Joined: Nov 2006
|
O.P. RE: [REQUEST] Retrieving info from MSN Groups
Does anyone have any idea how?
|
|
11-24-2006 03:43 PM |
|
|
|