BuzzerBeater
BuzzerBeater Forums
BBAPI Support > Another login / session issue
Back to the Sneak Peek
BBAPI Support
Site guide lines
10
http status codes fix
3
This page contains the followi...
4
API Through Powershell
1
PHP How to keep cookie
2
Mobile App
1
Doubt
7
Training information
2
accent stripping and login iss...
1
Play by play?
2
New tactics
2
CAMBIO LOGIN
2
login issues
24
Closed
2
Future of BBAPI
1
Potential
18
HoF and ATG potential are both...
1
Another login / session issue
5
Problems with the web
2
BB Tool Application Request
6
<
>
Favorite Folders
Another login / session issue
Set priority
High
Normal
Low
Show messages by
Everybody
LA-Niko (1)
Dr. Dr. Jàn Ïtor (2)
akuma (2)
Search this Thread (Supporter Feature)
From:
akuma
This Post:
0
135566.1
Date: 3/22/2010 5:37:07 AM
Overall Posts Rated:
179
Hi all,
Yes, yet another login / session establishment thread :)
I'm trying to use VB.NET to pull some data into an app i'm writing. So far got the following code:
' Login
Dim cookieJar As CookieContainer = New CookieContainer()
Dim webRequest As HttpWebRequest = HttpWebRequest.Create("http://bbapi.buzzerbeater.com/BBAPI/login.aspx?login=BLAH&code=BLAH")
webRequest.CookieContainer = cookieJar
Dim responseReader = New StreamReader(webRequest.GetResponse().GetResponseStream())
TextBox1.Text = responseReader.ReadToEnd
' Get the arena info page
webRequest = HttpWebRequest.Create("http://bbapi.buzzerbeater.com/BBAPI/arena.aspx")
webRequest.CookieContainer = cookieJar
webRequest.UserAgent = "Fiddler"
responseReader = New StreamReader(webRequest.GetResponse().GetResponseStream())
TextBox2.Text = responseReader.ReadToEnd()
responseReader.Close()
So for the login, I get a valid "LoggedIn" response, but any subsequent requests I get a 404 error message being thrown back.
Can anyone tell me if I am doing anything wrong?
An interesting thing to note is, when I test via a browser by hitting this url
"http://bbapi.buzzerbeater.com/BBAPI/login.aspx?login=BLAH&code=BLAH"
and then this url
"http://bbapi.buzzerbeater.com/BBAPI/arena.aspx"
I get the same error response! I thought it might be that the BBAPI server is down, but I just checked the bb-stats website and that is working fine...
Mark Unread
Ignore User
From:
akuma
To:
akuma
This Post:
0
135566.2
in reply to
135566.1
Date: 3/22/2010 5:42:01 AM
Overall Posts Rated:
179
nevermind, in the process of writing this i fugred out what i was doing wrong, used the wrong url
I used this as the base URL
http://bbapi.buzzerbeater.com/BBAPI/
The correct base URL is
http://bbapi.buzzerbeater.com/
for anyone that is interested, the above worked after i changed the base urls :)
A little off topic, but has anyone successfully been able to screen scrape the buzzerbeater site during a game to get the live scores of the scoreboard or the flash app?
Mark Unread
Ignore User
From:
LA-Niko
To:
Dr. Dr. Jàn Ïtor
This Post:
0
135566.4
in reply to
135566.3
Date: 3/26/2010 7:07:10 AM
Overall Posts Rated:
21
I remember Oxidus complaining about the match data feed lol
Creator of
(http://www.buzzerbeaterstats.com)
and
(http://www.buzzerbeaternews.com/)
-- Ex GM of Australia -- Division 1 winner of Italy Season 1 then moved team to Australia after the country was created by the BBs. Australian team manager for 2 seasons. Won various tournaments and division 1 titles in the following seasons.
Mark Unread
Ignore User
Disable Emoticons and Images