| Pages: 1 :: [one page] |
| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

shawn313
|
Posted - 2008.01.31 00:01:00 -
[1]
Edited by: shawn313 on 31/01/2008 00:03:11 Edited by: shawn313 on 31/01/2008 00:02:26 ok so i am working on a api right now i have this code
Imports System.Net Imports System.IO
Public Class Form1 Public Shared Sub Main(ByVal args() As String)
If args Is Nothing OrElse args.Length = 0 Then Throw New ApplicationException("api.eve-online.com/account/Characters.xml.aspx") End If Dim client As New WebClient()
' Add a user agent header in case the ' requested URI contains a query. client.QueryString.Add("userID", "xxxx") client.QueryString.Add("apiKey", "xxxx") client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)") Dim baseurl As String = "api.eve-online.com" Dim data As Stream = client.OpenRead(baseurl) Dim reader As New StreamReader(data) Dim s As String = reader.ReadToEnd() Console.WriteLine(s) data.Close() reader.Close() End Sub 'Main
End Class
i am still working on it if anyone would like to help plz post here and if you see some thing wrong with the code plz post thank you
|

Amida Ta
|
Posted - 2008.01.31 00:36:00 -
[2]
There are at least 3 .Net libraries available. Why not use any of them?
And in your sample at least the url for openread is wrong.
|

shawn313
|
Posted - 2008.01.31 01:34:00 -
[3]
Originally by: Amida Ta There are at least 3 .Net libraries available. Why not use any of them?
And in your sample at least the url for openread is wrong.
was looking for one for vb.net could not find it anyone got a url?
|

Xaroth Brook
Minmatar BIG Ka-Tet
|
Posted - 2008.01.31 02:05:00 -
[4]
Edited by: Xaroth Brook on 31/01/2008 02:06:15 vb.net can use C# libraries, just compile them as dll if they aren't already and add them as reference... easy as that.
on a more important note, learn C# instead if you're going for a .net language.. maybe not as easy but the 'strictness' of a C-based language will help you a lot.
It was like a baby, it landed on my lap and was helpless and totally defenseless. Then I shot it and bragged about it on a killboard.
|

Gremrod
Minmatar DEEzNUTS-DzN
|
Posted - 2008.01.31 02:52:00 -
[5]
Edited by: Gremrod on 31/01/2008 02:52:50 I agree. I was a VB 6.0 user but when I moved into .NET I went with C# and have not looked back since. I have a few applications at work that got dumped on me and they are done in VB.NET. I can't believe how much more typing and messy that VB is....
I never really paid attention to that back in the pre .NET days.
|

Amida Ta
|
Posted - 2008.01.31 07:13:00 -
[6]
Edited by: Amida Ta on 31/01/2008 07:16:00
Originally by: shawn313
Originally by: Amida Ta There are at least 3 .Net libraries available. Why not use any of them?
And in your sample at least the url for openread is wrong.
was looking for one for vb.net could not find it anyone got a url?
Look in this forum or on http://wiki.eve-dev.net/. You do not need one in vb.net. You can just use a precompiled one from any .Net compatible language.
There is at least Eve Toolbox - Pretty complete, but only supports the v1 Eve API libeveapi - Open Source, but also has a precompiled version. Supports only the API v2 calls but does not support augmenting with static data. EveAI.Live - Supports the API v2 calls, all relevant static EVE data and has additional convenience functions, only precompiled version.
|

Kaska102
Caldari
|
Posted - 2008.02.01 04:54:00 -
[7]
libeveapi (ours) supports all API calls, version 1 and version 2. Amanda Ta is right, it doesn't support static data, it's just a library.
We have the source and a compiled dll available here
|

Amida Ta
|
Posted - 2008.02.01 13:12:00 -
[8]
Originally by: Kaska102 libeveapi (ours) supports all API calls, version 1 and version 2. Amanda Ta is right, it doesn't support static data, it's just a library.
Sorry for the misunderstanding. Of course both libeveapi and EveAI support not just API v2 but also API v1. The "only" was meant to say that it doesn't provide additional static data or convenience calculations or something like this. BTW: EveAI is also just a library but does support static data and convenience functions.
|
| |
|
| Pages: 1 :: [one page] |