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.

#1 2017-03-06 03:34:51, last edited by lrussell (2017-06-04 19:17:18)

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

[Release] EE Web API and Signature Badges

EE Web API

EE Web API allows you to access game information through an easy-to-use JSON API. All of the information is pulled from the game on-request. More features are always in the works and I am open to requests.

Documentation can be found here.

PHP API Request Function
Signature Badges

Using signature badges, you can proudly display your online status, energy level, gems, login streak, last login, items bought, registration date, and/or location here on the forum!

Visit this page to get your own.

Offline

#2 2017-03-06 07:58:20, last edited by Xfrogman43 (2017-03-06 07:58:45)

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Release] EE Web API and Signature Badges

Uh some people are messed up

germanpower68
dream

but 10/10 job //forums.everybodyedits.com/img/smilies/big_smile


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Wooted by:

#3 2017-03-06 10:10:09

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

Re: [Release] EE Web API and Signature Badges

Would it be possible to have a "member since"? I'm pretty sure some people enjoy humbly bragging about that.

Offline

Wooted by: (3)

#4 2017-03-06 15:52:07, last edited by Myst (2017-03-06 15:53:22)

Myst
Guest

Re: [Release] EE Web API and Signature Badges

?type=loginstreak&name=Mysterion
i play this game everyday, how is this 0?

#5 2017-03-06 18:30:02, last edited by hummerz5 (2017-03-06 18:33:22)

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Release] EE Web API and Signature Badges

the distinction should be made that lrussell's creation is distinct from the game in terms of bug reports

I'll put this with the existing thread

and hg be nice //forums.everybodyedits.com/img/smilies/smile

edit: also I don't see casing having an effect

@frog:
username changes, perhaps?

Offline

#6 2017-03-06 20:32:40

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

Re: [Release] EE Web API and Signature Badges

Xfrogman43 wrote:

Uh some people are messed up

but 10/10 job //forums.everybodyedits.com/img/smilies/big_smile

For germanpower68, there isn't a lastlogin entry in their PlayerObject so it used the default date. Their account is really new and doesn't appear to be active so that probably explains it.
For dream, I'm not sure what's going on there. Their PlayerObject returns null when I use their player ID (simple1484795137698x2).

den3107 wrote:

Would it be possible to have a "member since"? I'm pretty sure some people enjoy humbly bragging about that.

Yeah, I can add that. It won't work for everyone though, only regular accounts.

Mysterion wrote:

http://ee.lrussell.net/badge/?type=logi … =Mysterion
i play this game everyday, how is this 0?

Your PlayerObject, which is where I get the information from, doesn't have a loginStreak entry. So it defaulted to 0.

Offline

#7 2017-03-06 20:48:44

Myst
Guest

Re: [Release] EE Web API and Signature Badges

lrussell wrote:
Xfrogman43 wrote:

Uh some people are messed up

but 10/10 job //forums.everybodyedits.com/img/smilies/big_smile

For germanpower68, there isn't a lastlogin entry in their PlayerObject so it used the default date. Their account is really new and doesn't appear to be active so that probably explains it.
For dream, I'm not sure what's going on there. Their PlayerObject returns null when I use their player ID (simple1484795137698x2).

den3107 wrote:

Would it be possible to have a "member since"? I'm pretty sure some people enjoy humbly bragging about that.

Yeah, I can add that. It won't work for everyone though, only regular accounts.

Mysterion wrote:

http://ee.lrussell.net/badge/?type=logi … =Mysterion
i play this game everyday, how is this 0?

Your PlayerObject, which is where I get the information from, doesn't have a loginStreak entry. So it defaulted to 0.


germanpower68 is one of ernesdo's alt

#8 2017-03-06 21:11:23, last edited by capasha (2017-03-06 21:12:45)

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

Re: [Release] EE Web API and Signature Badges

Looks good. I like that you disabled viewing on private profiles and also name changed accounts.

Offline

#9 2017-03-07 00:03:32

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

Re: [Release] EE Web API and Signature Badges

lrussell wrote:

For germanpower68, there isn't a lastlogin entry in their PlayerObject so it used the default date. Their account is really new and doesn't appear to be active so that probably explains it.
For dream, I'm not sure what's going on there. Their PlayerObject returns null when I use their player ID (simple1484795137698x2).

Your PlayerObject, which is where I get the information from, doesn't have a loginStreak entry. So it defaulted to 0.

Would it perhaps be an idea to then display a different default? Instead of the epoch and 0, something like "No data available" or whatever. Might avoid confusion.
Or are the default values something returned straight from the DB, so not really something you can catch?

Offline

#10 2017-03-07 00:21:20, last edited by lrussell (2017-03-07 01:46:39)

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

Re: [Release] EE Web API and Signature Badges

den3107 wrote:
lrussell wrote:

For germanpower68, there isn't a lastlogin entry in their PlayerObject so it used the default date. Their account is really new and doesn't appear to be active so that probably explains it.
For dream, I'm not sure what's going on there. Their PlayerObject returns null when I use their player ID (simple1484795137698x2).

Your PlayerObject, which is where I get the information from, doesn't have a loginStreak entry. So it defaulted to 0.

Would it perhaps be an idea to then display a different default? Instead of the epoch and 0, something like "No data available" or whatever. Might avoid confusion.
Or are the default values something returned straight from the DB, so not really something you can catch?

I'm actually already implementing that as we speak.

Offline

#11 2017-03-07 01:14:26, last edited by lrussell (2017-03-07 01:47:13)

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

Re: [Release] EE Web API and Signature Badges

API Updates

The API has two new functions: /worlds and /game. See the documentation for more info. I've also made it so entries return null instead of their default values if no data is found.

Badge Updates

Badges now reflect if no information can be found. I've also added a badge for registration date, see the generator page to get it!

Preview: ?type=registered&name=nvd (for nvd)

Offline

#12 2017-03-07 05:08:58, last edited by Xfrogman43 (2017-03-07 05:09:12)

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Release] EE Web API and Signature Badges

hummerz5 wrote:

username changes, perhaps?

kiraninja
?type=online&name=kiraninja

dream
?type=online&name=dream

I don't think so...


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Wooted by:

#13 2017-03-07 16:05:33

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

Re: [Release] EE Web API and Signature Badges

Xfrogman43 wrote:
hummerz5 wrote:

username changes, perhaps?

kiraninja
http://ee.lrussell.net/badge/?type=onli … =kiraninja

dream
http://ee.lrussell.net/badge/?type=online&name=dream

I don't think so...

I can load kiraninja with my tool, but seems like it some problems with dream for me.

Offline

#14 2017-03-07 21:07:27

drunkbnu
Formerly HG
Joined: 2017-08-16
Posts: 2,306

Re: [Release] EE Web API and Signature Badges

Xfrogman43 wrote:
hummerz5 wrote:

username changes, perhaps?

kiraninja
http://ee.lrussell.net/badge/?type=onli … =kiraninja

dream
http://ee.lrussell.net/badge/?type=online&name=dream

I don't think so...

Perhaps his/her name is actually Kira, or is it another user?

Offline

#15 2017-03-07 23:20:08

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Release] EE Web API and Signature Badges

HG wrote:
Xfrogman43 wrote:
hummerz5 wrote:

username changes, perhaps?

kiraninja
http://ee.lrussell.net/badge/?type=onli … =kiraninja

dream
http://ee.lrussell.net/badge/?type=online&name=dream

I don't think so...

Perhaps his/her name is actually Kira, or is it another user?

etvRrCL.png


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

#16 2017-03-09 02:34:14, last edited by hummerz5 (2017-03-09 02:34:25)

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Release] EE Web API and Signature Badges

so I was thinking

can you make a badge that's essentially the anti-login streak? "Days since played" or whatever?

I don't have a cool web server to run things like that

I think

Offline

Wooted by: (2)

#17 2017-03-09 12:10:15

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

Re: [Release] EE Web API and Signature Badges

hummerz5 wrote:

so I was thinking

can you make a badge that's essentially the anti-login streak? "Days since played" or whatever?

I don't have a cool web server to run things like that

I think

You got the last login badge. It's a date, instead of a number of days, though.

Offline

Wooted by:

#18 2017-03-19 06:08:48

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

Re: [Release] EE Web API and Signature Badges

API Updates
  • Added world names to player function.

  • Added "Banned" to player function.

  • Server index page now outputs host name, build date, uptime, and time.

  • JSON output is now formatted.

  • Other miscellaneous improvements.

Badge Updates
  • The Last Login badge now displays number of days ago.

  • Badge data is cached for one minute. This was implemented some time ago.

Offline

#19 2017-03-19 06:29:06

Doomsdaytoy9000
Member
From: Where your eyes can't go
Joined: 2015-03-16
Posts: 741

Re: [Release] EE Web API and Signature Badges

Why does it say I've been registered since 2014 even though I've actually been registered since 2011/2012


XR0wvu0.png

Offline

#20 2017-03-19 17:39:09

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

Re: [Release] EE Web API and Signature Badges

Doomsdaytoy9000 wrote:

Why does it say I've been registered since 2014 even though I've actually been registered since 2011/2012

Your registration date is based off your user ID. From "simple1417072926554x64", your registration date is "1417072926554" in Unix time - or Thu, 27 Nov 2014 07:22:06.554 GMT. If your account was moved from another site, ex. Kongregate, it was probably swapped with an alt account and took on its ID and therefore registration date.

Offline

Wooted by:

#21 2017-03-19 17:58:11, last edited by Myst (2017-03-19 17:58:48)

Myst
Guest

Re: [Release] EE Web API and Signature Badges

thanks for the update, now know everyone this i'm a noob with beta and FFS badge
?type=registered&name=Mysterion
ZFJfvD.png

#22 2017-03-20 11:04:34

XuanhuyEverybodyEdits
Member
From: MasterGamesSchool
Joined: 2016-11-24
Posts: 162

Re: [Release] EE Web API and Signature Badges

how i can change it? It say User profile private


Xuanhuy is Best.
       So be friend with him <3
              My friend is best, too
                  Awesome like for Xuanhuy
By: Navia~
?type=registered&name=Xuanhuy
unknown.png

Offline

#23 2017-03-20 11:50:52

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,211

Re: [Release] EE Web API and Signature Badges

XuanhuyEverybodyEdits wrote:

how i can change it? It say User profile private

In EE go to Settings and change your profile to public

Offline

Wooted by:

#24 2017-03-20 15:00:35

XuanhuyEverybodyEdits
Member
From: MasterGamesSchool
Joined: 2016-11-24
Posts: 162

Re: [Release] EE Web API and Signature Badges

Gosha wrote:
XuanhuyEverybodyEdits wrote:

how i can change it? It say User profile private

In EE go to Settings and change your profile to public

I already do it


Xuanhuy is Best.
       So be friend with him <3
              My friend is best, too
                  Awesome like for Xuanhuy
By: Navia~
?type=registered&name=Xuanhuy
unknown.png

Offline

#25 2017-03-21 00:47:39

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

Re: [Release] EE Web API and Signature Badges

API Update - March 20, 2017
  • Added /world function. See documentation for usage.

  • Renamed /worlds to /lobby.

  • Set up load balancing between multiple API servers.

  • Other miscellaneous code improvements.

I'm still open to improvements and suggestions. Please make recommendations and I'll consider them.

Offline

lrussell1514496009688682

Board footer

Powered by FluxBB

[ Started around 1732261444.9866 - Generated in 0.116 seconds, 10 queries executed - Memory usage: 1.87 MiB (Peak: 2.18 MiB) ]