BuzzerBeater Forums

BBAPI Support > Another login / session issue

Another login / session issue

Set priority
Show messages by
From: akuma
This Post:
00
135566.1
Date: 3/22/2010 5:37:07 AM
Overall Posts Rated:
179179
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...

From: akuma

This Post:
00
135566.2 in reply to 135566.1
Date: 3/22/2010 5:42:01 AM
Overall Posts Rated:
179179
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?

This Post:
00
135566.4 in reply to 135566.3
Date: 3/26/2010 7:07:10 AM
Overall Posts Rated:
2121
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.