|
You last visited: Today at 02:46
Advertisement
[Release] epvpapi - .NET Library für elitepvpers
Discussion on [Release] epvpapi - .NET Library für elitepvpers within the Coding Releases forum part of the Coders Den category.
03/23/2016, 16:35
|
#76
|
elite*gold: 400
Join Date: Nov 2008
Posts: 67,905
Received Thanks: 19,505
|
Quote:
Originally Posted by Ethnobotaniker
Schon mal vielen Dank, aber gibts noch irgendwo Tutorials zum einloggen?
Ich war schon auf dem Github Blog.
|
Eigentlich gibts doch ein passenden Wiki Eintrag dafür
Code:
User mostey = new User("Mostey", 467410);
var session = new AuthenticatedSession<User>(mostey, "mySecretMd5Hash");
Mit dem session Objekt arbeitest du dann weiter
|
|
|
03/27/2016, 14:53
|
#77
|
elite*gold: 1472
Join Date: Jun 2014
Posts: 2,665
Received Thanks: 544
|
Wie kann man sich sein e*gold anzeigen lassen?
|
|
|
03/27/2016, 15:02
|
#78
|
elite*gold: 400
Join Date: Nov 2008
Posts: 67,905
Received Thanks: 19,505
|
Quote:
Originally Posted by sexualising
Wie kann man sich sein e*gold anzeigen lassen? 
|
Code:
{Session}.EliteGold
enthält die Anzahl an Elite*gold als int
|
|
|
03/27/2016, 15:22
|
#79
|
elite*gold: 1472
Join Date: Jun 2014
Posts: 2,665
Received Thanks: 544
|
Ah session.User.EliteGold
Vielen Dank!
|
|
|
06/11/2016, 04:42
|
#80
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
|
There's some bug I noticed.
Code:
public string GetUrl(uint pageIndex = 1)
{
return String.Format("http://www.elitepvpers.com/forum/{0}/{1}-{2}" + ((pageIndex > 1) ? "-" + pageIndex : "") + ".html",
Section.Shortname, ID, InitialPost.Title.UrlEscape());
}
I noticed that when the thread title is ending with a special character then a number this will method will create a conflict with the actual thread and the number of page in that thread. Usually there's an "-a" at the end of the urls with that pattern.
Nothing will throw an exception but if you're targeting the actual thread you won't get the expected result cuz you will be returning a different page actually (unless the thread only contains one page)
|
|
|
06/11/2016, 11:12
|
#81
|
elite*gold: 1091
Join Date: Jun 2007
Posts: 19,836
Received Thanks: 7,180
|
Quote:
Originally Posted by Exo
There's some bug I noticed.
Code:
public string GetUrl(uint pageIndex = 1)
{
return String.Format("http://www.elitepvpers.com/forum/{0}/{1}-{2}" + ((pageIndex > 1) ? "-" + pageIndex : "") + ".html",
Section.Shortname, ID, InitialPost.Title.UrlEscape());
}
I noticed that when the thread title is ending with a special character then a number this will method will create a conflict with the actual thread and the number of page in that thread. Usually there's an "-a" at the end of the urls with that pattern.
Nothing will throw an exception but if you're targeting the actual thread you won't get the expected result cuz you will be returning a different page actually (unless the thread only contains one page)
|
Thank you for reporting this bug. This library needs some rework, are you interested in resolving this issue by yourself via GitHub?
Could you also provide an example for a thread whose title is ending with a special character?
|
|
|
06/11/2016, 17:35
|
#82
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
|
Quote:
Originally Posted by Mostey
Thank you for reporting this bug. This library needs some rework, are you interested in resolving this issue by yourself via GitHub?
Could you also provide an example for a thread whose title is ending with a special character?
|
Yes sure!
Here  &
|
|
|
06/11/2016, 20:44
|
#83
|
elite*gold: 0
Join Date: Apr 2011
Posts: 11,117
Received Thanks: 2,436
|
Quote:
Originally Posted by Mostey
Thank you for reporting this bug. This library needs some rework, are you interested in resolving this issue by yourself via GitHub?
Could you also provide an example for a thread whose title is ending with a special character?
|
Hast dazu einen sehr sehr sehr simplen Merge Request/Pull Request bekommen
|
|
|
06/12/2016, 10:43
|
#84
|
elite*gold: 1091
Join Date: Jun 2007
Posts: 19,836
Received Thanks: 7,180
|
Quote:
Originally Posted by .ƒaℓsє.
Hast dazu einen sehr sehr sehr simplen Merge Request/Pull Request bekommen 
|
Danke, ist gemerged.
|
|
|
12/06/2016, 15:18
|
#85
|
elite*gold: 40
Join Date: Mar 2013
Posts: 1,396
Received Thanks: 778
|
Funktionieren BlackMarket Ratings bei euch?
Code:
label_tbm_positive.Text = CType(mySession.Profile.User.TBMProfile.Ratings.Positive, String)
|
|
|
12/06/2016, 16:18
|
#86
|
elite*gold: 0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
|
Sollten sie, zeig doch mal bitte etwas mehr Code.
|
|
|
12/06/2016, 18:15
|
#87
|
elite*gold: 40
Join Date: Mar 2013
Posts: 1,396
Received Thanks: 778
|
Quote:
Originally Posted by Shawak
Sollten sie, zeig doch mal bitte etwas mehr Code.
|
Habs jetzt in der API behoben:
In der Datei UserParser.cs Line: 355 steht folgendes:
Code:
var positiveRatingsNode = valueNode.SelectSingleNode("span[1]");
Target.TBMProfile.Ratings.Positive = (positiveRatingsNode != null) ? positiveRatingsNode.InnerText.To<uint>() : Target.TBMProfile.Ratings.Positive;
Das hat mir immer 0 zurückgegeben
Hab dann "span" durch "a" ersetzt:
Code:
var positiveRatingsNode = valueNode.SelectSingleNode("a[1]");
Target.TBMProfile.Ratings.Positive = (positiveRatingsNode != null) ? positiveRatingsNode.InnerText.To<uint>() : Target.TBMProfile.Ratings.Positive;
Dann hat's geklappt, Frag mich nicht woran das jetzt lag, dass er den span nicht finden konnte. Vielleicht weil drüber noch der a Tag ist?!
Code:
<dd><a href="http://www.elitepvpers.com/theblackmarket/ratings/5121922/positive/"><span class="green">6</span></a>/0/<span class="red">0</span></dd>
|
|
|
12/06/2016, 22:47
|
#88
|
elite*gold: 0
Join Date: May 2010
Posts: 6,853
Received Thanks: 5,106
|
PHP Code:
lblPositiveCount.Text = Api.GetInstance().User.TBMProfile.Ratings.Positive.ToString(); lblNetraulCount.Text = Api.GetInstance().User.TBMProfile.Ratings.Neutral.ToString(); lblNegativeCount.Text = Api.GetInstance().User.TBMProfile.Ratings.Negative.ToString();
Bei mir scheint das auch problemlos zu funktionieren mit der Api das richtig anzuzeigen:
Sicher das du ne aktuelle hast?
|
|
|
12/07/2016, 17:18
|
#89
|
elite*gold: 40
Join Date: Mar 2013
Posts: 1,396
Received Thanks: 778
|
Quote:
Originally Posted by Serraniel
Sicher das du ne aktuelle hast?
|
Ja hab's per NuGet gezogen... Ist ja auch egal so funktioniert es ja
|
|
|
05/25/2017, 19:30
|
#90
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
|
This probably needs an update since Https got enforced.
EDIT:
|
|
|
All times are GMT +1. The time now is 02:48.
|
|