ioncodes / JodelAPI

API-Wrapper for the Jodel app in .NET
37 stars 9 forks source link

Getting Bad Request WebExeption #38

Closed Mese1953 closed 7 years ago

Mese1953 commented 7 years ago

I'm trying to use the jodel API like your UnitTests.

    Jodel jodel = new Jodel("Zuerich Schweiz", "CH", "Zuerich");

    jodel.GenerateAccessToken();
    jodel.RefreshAccessToken();
    int karma = jodel.GetKarma();

But all request will end with the following Exception:

System.Net.WebException occurred: The remote server returned an error: (400) Bad Request.

JohannesBauer97 commented 7 years ago

I got the same problem with:

Jodel jodel = new Jodel("Deutschland Dresden", "DE", "Dresden");

ioncodes commented 7 years ago

I have to update the key, I will do this tomorrow

ioncodes commented 7 years ago

https://github.com/ioncodes/JodelAPI/commit/3931d3736ea7cc42aaa544dbb8e9d695af506d5a Should be fixed now.

Mese1953 commented 7 years ago

@ioncodes I got the same issue again. Where can we found the API keys to contribute these?

ioncodes commented 7 years ago

Please have a look at this section https://github.com/ioncodes/JodelAPI#read-this-first