Git Product home page Git Product logo

steamwebapi's People

Contributors

overv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

steamwebapi's Issues

Authenticate no longer works

Hello Overv, at first thx for the great work, but since a few days, the request.GetResponse() returns always a 'Internal Server Error'.

Reauthentication on Timeout

The Authentication Session provided by steam only stays alive up to 30 seconds after the last request was made on that key.

After 30 seconds the Programs is required to re-authenticate with Steam and currently your application provides no method of doing that.

Your application should either keep the session open OR automatically re-authenticate with Steam on a new request if required.

Steam Trade

I know it's not an actual issue, but I opened one because this project was abandoned. If it truly was, kindly hand it over to me, I will take care of it. If it was not, allow me to be a collaborator of some sort in the project and I will attempt to get the steam trade API going.

Errores

hello, i have two problems with your code

1- The name 'data' does not exist in the current context
2- Can not implicitly convert type 'int' in 'Steam Web API.SteamAPISession.LoginStatus'. An explicit conversion exists (check for missing a conversion)

The problems are in the following method:

public LoginStatus steamGuardRequest(String username, String password) {
String response = steamRequest("ISteamOAuth2/GetTokenWithCredentials/v0001",
"client_id=DE45CD61&grant_type=password&username=" + Uri.EscapeDataString(username) + "&password=" + Uri.EscapeDataString(password) + "&x_emailauthcode=0&scope=read_profile%20write_profile%20read_client%20write_client");

        if (((string) data["x_errorcode"]).Equals("steamguard_code_required")) {
            return 1;
        } else {
            return 0;
        }
    }

Can't login to steam

Not sure if this is because steam changed how logins work or because steam's login is down, but I'm getting a WebException: Could not find remote server during SteamAPISession.Authenticate().

Here's the relevant part of the code:

SteamAPISession session = new SteamAPISession
// ...
Console.WriteLine("Logging in...");
LoginStatus logStatus = LoginStatus.LoginFailed;
try
{
    logStatus = session.Authenticate(username, password);
}
catch (Exception e)
{
    Console.WriteLine("Could not log in: " + e.Message);
    Console.ReadKey();
    return;
}

Is this a problem with my code or with the API?

Errors

hello, i have two problems with your code

1- The name 'data' does not exist in the current context
2- Can not implicitly convert type 'int' in 'Steam Web API.SteamAPISession.LoginStatus'. An explicit conversion exists (check for missing a conversion)

The problems are in the following method:

public LoginStatus steamGuardRequest(String username, String password) {
String response = steamRequest("ISteamOAuth2/GetTokenWithCredentials/v0001",
"client_id=DE45CD61&grant_type=password&username=" + Uri.EscapeDataString(username) + "&password=" + Uri.EscapeDataString(password) + "&x_emailauthcode=0&scope=read_profile%20write_profile%20read_client%20write_client");

        if (((string) data["x_errorcode"]).Equals("steamguard_code_required")) {
            return 1;
        } else {
            return 0;
        }
    }

Saving Authentication Key

Without modifying your existing code the Application using your library is unable to save the User Authentication Key to use later. Which means when reopened a user with steam guard would have to login with their Username & Password and get another Steam Guard Authentication Code.

You need to provide a method/property for accessing the Authentication Key. So an Application only needs to ask for the Users Username/Password once if needed, and does not need to store them.

SSL/TLS Certificate Error

On any request I make which is not immediately after the last one I will receive a SSL/TLS Certificate Error from the GetRequestStream() function.

I made a workaround by re-submitting the request which seems to allow it to go through. However it would be nice if it worked without having to make a second request.

Code Change for the example

Great work so far fellas,
One thing though, actually two. First, you should change line #32 of the example program to read;

Console.WriteLine( "You have " + ( friends.Count - blockedFriends ) + " friends and " + blockedFriends + " fiends blocked!" );

else it says "you have friends and friends.

The second item would be to add a pause at the end, so that you can read them message. Then hit space to continue to the application end.

Thanks for all your hard work though, much appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.