Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#26 2017-04-12 05:53:33

lrussell
Member
From: Saturn's Titan
Joined: 2015-02-15
Posts: 843
Website

Re: [Release] EE Web API and Signature Badges

Badge Update - April 12, 2017
  • Images are now generated locally instead of redirecting to Shields.io.

  • Switched from PNG to SVG format.

They should load more quickly now, I hope to implement more optimizations in the near future.

Offline

#27 2017-04-12 06:20:01

Anatoly
Guest

Re: [Release] EE Web API and Signature Badges

?type=registered&name=eeanatoly

#28 2017-04-12 06:49:44

lrussell
Member
From: Saturn's Titan
Joined: 2015-02-15
Posts: 843
Website

Re: [Release] EE Web API and Signature Badges

Since your account uses Facebook, there's no way to retrieve your registration date. It only works for regular users by parsing the simple ID. This is normal.

Offline

#29 2017-04-12 06:51:55

Anatoly
Guest

Re: [Release] EE Web API and Signature Badges

Thank you!

#30 2017-04-18 22:41:37, last edited by lrussell (2017-04-19 00:39:38)

lrussell
Member
From: Saturn's Titan
Joined: 2015-02-15
Posts: 843
Website

Re: [Release] EE Web API and Signature Badges

API Update - April 18, 2017
  • Added /friends function. See documentation for usage.

  • The server now properly returns a JSON error in the event of a 404.

  • Other miscellaneous code improvements.

Badge Update

Introducing... the "Location" badge. Now someone can follow you to the level you're currently playing in right from your forum signature! Just click the badge and off you go.
In order to use this function, you must add the user "eeapi" as a friend in EE. Your friend request will be automatically accepted. Visit the generator page to get your own badge.

Preview: ?type=location&name=lrussell (for lrussell)

Offline

Wooted by: (3)

#31 2017-04-19 00:32:43, last edited by dcomet (2017-04-19 00:32:56)

dcomet
Member
From: Dipstick Kingdom
Joined: 2016-11-20
Posts: 788

Re: [Release] EE Web API and Signature Badges

"That player is not a friend."


1xxoWGb.png
X6pVnTA.png
@MAMETCHl on twitter for the pfp artist, @snuffyowo on twitter for the character drawn in the pfp.

Offline

#32 2017-04-19 00:37:23

lrussell
Member
From: Saturn's Titan
Joined: 2015-02-15
Posts: 843
Website

Re: [Release] EE Web API and Signature Badges

DarkComet wrote:

"That player is not a friend."

You need to add "eeapi" as a friend in EE for the badge to work. The API has no way to know your location otherwise.

Offline

#33 2017-04-19 00:40:31, last edited by dcomet (2017-04-19 00:40:53)

dcomet
Member
From: Dipstick Kingdom
Joined: 2016-11-20
Posts: 788

Re: [Release] EE Web API and Signature Badges

lrussell wrote:
DarkComet wrote:

"That player is not a friend."

You need to add "eeapi" as a friend in EE for the badge to work. The API has no way to know your location otherwise.

done.
ocool it works


1xxoWGb.png
X6pVnTA.png
@MAMETCHl on twitter for the pfp artist, @snuffyowo on twitter for the character drawn in the pfp.

Offline

#34 2017-04-24 04:59:51

Minisaurus
Banned

Re: [Release] EE Web API and Signature Badges

I want to suggest a ¨Max login streak reached¨ badge.
That way players are able to know what is the max amount of days in a row a player had login, even if that player start over his login streak counter.

#35 2017-04-24 17:10:08

lrussell
Member
From: Saturn's Titan
Joined: 2015-02-15
Posts: 843
Website

Re: [Release] EE Web API and Signature Badges

Minisaurus wrote:

I want to suggest a ¨Max login streak reached¨ badge.
That way players are able to know what is the max amount of days in a row a player had login, even if that player start over his login streak counter.

I'm not really sure how this could be accomplished, other than by keeping historical data starting from now. EE doesn't store the maximum login streak a player has managed.

Offline

#36 2017-04-28 02:37:06, last edited by dcomet (2017-04-28 02:48:57)

dcomet
Member
From: Dipstick Kingdom
Joined: 2016-11-20
Posts: 788

Re: [Release] EE Web API and Signature Badges

For the location badge, is it able to show the world it's joinable or not?

like this
TmajxyQ.png


1xxoWGb.png
X6pVnTA.png
@MAMETCHl on twitter for the pfp artist, @snuffyowo on twitter for the character drawn in the pfp.

Offline

#37 2017-04-28 13:42:45

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Release] EE Web API and Signature Badges

DarkComet wrote:

For the location badge, is it able to show the world it's joinable or not?

like this
http://i.imgur.com/TmajxyQ.png

Maybe have a parameter to enable/disable this.

I also thought maybe badges for the last bought item and the worth in energy/gems of all items you've currently bought (basically stuff from ee.yonom.org)?

Offline

Wooted by:

#38 2017-04-28 15:21:56

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Release] EE Web API and Signature Badges

DarkComet wrote:

For the location badge, is it able to show the world it's joinable or not?

like this
http://i.imgur.com/TmajxyQ.png

Should be possible with:

client.BigDB.Load("Worlds", "PW01")["visible"];

Offline

Wooted by: (2)

#39 2017-04-28 17:00:21, last edited by lrussell (2017-04-28 18:43:25)

lrussell
Member
From: Saturn's Titan
Joined: 2015-02-15
Posts: 843
Website

Re: [Release] EE Web API and Signature Badges

DarkComet wrote:

For the location badge, is it able to show the world it's joinable or not?

like this
http://i.imgur.com/TmajxyQ.png

I could do that. Although on second though it seems to me that it'd be better to not show the world if it's invisible -- I hadn't considered bots snooping around (even though they could find it in the database anyway).

den3107 wrote:
DarkComet wrote:

For the location badge, is it able to show the world it's joinable or not?

like this
http://i.imgur.com/TmajxyQ.png

Maybe have a parameter to enable/disable this.

I also thought maybe badges for the last bought item and the worth in energy/gems of all items you've currently bought (basically stuff from ee.yonom.org)?

I'll look into it. I was also considering about a "Gems" badge that could complement the "Energy" one.
As for the toggle, I'd rather look for a way to make it less intrusive. Perhaps something like the alert I use now if you click the badge when the player isn't in a world.

capasha wrote:
DarkComet wrote:

For the location badge, is it able to show the world it's joinable or not?

like this
http://i.imgur.com/TmajxyQ.png

Should be possible with:

client.BigDB.Load("Worlds", "PW01")["visible"];

Way ahead of you. http://ee-api.lrussell.net/world/PW01
Just to clarify, the badges are implemented in PHP. All I do is make a request to the API, which basically does that internally. I'd just need to do is do something like:

$isWorldVisible = apiRequest('world', 'PW01')['Visible'];

I've updated the OP post with the apiRequest function.

Offline

#40 2017-05-29 07:26:11, last edited by lrussell (2017-06-02 04:55:03)

lrussell
Member
From: Saturn's Titan
Joined: 2015-02-15
Posts: 843
Website

Re: [Release] EE Web API and Signature Badges

API Update - May 29, 2017
  • "lobby" is now sorted by the number of online players in descending order.

  • "online" now displays both the player's ID and username.

  • "player" has new values: "Gems", "TotalItems", "HasBeta", and "IsGold". "IsOnline" has been removed to improve load-time.

  • A more accurate message is displayed on 404 Not Found.

  • Error messages have been shortened.

  • Other small changes and improvements.

Offline

#41 2017-06-02 22:51:18

lrussell
Member
From: Saturn's Titan
Joined: 2015-02-15
Posts: 843
Website

Re: [Release] EE Web API and Signature Badges

Badge Update - June 2, 2017
  • Added "Gems" badge, which displays the number of gems a player has.

  • Added "Items Bought" badge, which displays the total number of PayVault transactions a player has made.

Visit the generator page to get them!

Examples (using Nvd):
?type=gems&name=nvd ?type=itemsbought&name=nvd

Offline

Wooted by:

#42 2017-12-28 22:20:09, last edited by lrussell (2018-06-19 08:01:26)

lrussell
Member
From: Saturn's Titan
Joined: 2015-02-15
Posts: 843
Website

Re: [Release] EE Web API and Signature Badges

The API is currently down due to some apparent Player.IO issues. I will update the topic once I have more information or a solution has been found.

EDIT: It appears that Player.IO must have blocked my server's IP address.

(2017-12-29 10:35:17 pm) EDIT 2: Normal service has been restored. The API has been updated in order to account for recent changes which had broken it.

_________________________

(2018-06-19) I've just make public an updated version API with much more information present. If you see this, feel free to explore the new data available. I may have basically finished this update in March but only now more or less finalized it. I've closed this topic and will be making a new one soon detailing all of the changes.

Offline

Wooted by: (3)
lrussell1514496009688682

Board footer

Powered by FluxBB

[ Started around 1732564664.6463 - Generated in 0.086 seconds, 12 queries executed - Memory usage: 1.69 MiB (Peak: 1.92 MiB) ]