Sinisterly
[ALPHA] API for CodeCommunity [WIP] - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework)
+--- Thread: [ALPHA] API for CodeCommunity [WIP] (/Thread-ALPHA-API-for-CodeCommunity-WIP)

Pages: 1 2 3 4 5 6 7


[ALPHA] API for CodeCommunity [WIP] - Platinum - 07-23-2013

[Image: 2ynjymh.png]

ALPHA PREVIEW IS RELEASED!![link]

[Image: 2z4yfl2.png]

The goal is to cover as much functions related to Code Community as possible! Here's a list of features planned: (green = done, orange = need recoding, red = unfinished work (WIP))

User System:
  • Get username
  • Get online status
  • Get reputation
  • Get time spent online
  • Get join date
  • Get total posts
  • Get last visit
  • Get members referred
  • Get awards
  • Get avatar
  • Get Bio
  • Get signature
  • Get local time
  • Get location
  • Get gender
  • Get date of birth

As Of update 2:

  • Logging in with custom script

As Of update 3:
  • Get the main usergroup
  • Get the total amount of CCP
  • Added broken image for no avatars

As of U4: it's released!!!! Go here: [link]
Update Notes
Spoiler:
Quote:update 4:

I've cleaned up the source code for the Alpha release. Besides, if you haven't seen it yet, it's released right here: [link]
I've also updated THIS thread, with the logo and making it a bit easier to read.
  • Cleaned up all code
  • Got rid of some issues
  • Made sure all functions work properly

Currently, the goal is to make every function work FASTER.. Lets say within only a couple of lines or maybe only 1 line (if possible).
Please tell me if you have suggestions!

Older:
Spoiler:
Quote:update 3:

Recoded some functions to make them work faster (now using Split) (also minimizes the size of the code)
I've coded 2 new things:
  • Getting the main usergroup
  • Getting the total amount of CCP

- Also added a new pic to show the extra stuff =3

I now also made sure that there's no error if a user has no image. It returned an error if the user didn't have one, now it's simply replaced by a broken url image.
Also I've completely recoded getting the signature because it was kind of broken, but now it works 100% for every user and any signature! <3
Next things I'll be focusing on is recoding a lot of the functions using Split because it's fast, reliable and also short code.
Quote:update 2:

Recoded getting the avatar, now works for ANY link. all there's left to make a check if the user has an avatar or not (now done as of update 3)
  • Added the ability to log in via a form, no webbrowsers needed (thanks to Sap for cleaning up!)
  • Added the ability to get the custom usertitle (code thanks to shebang!)

Next up in the list is to get forum-names/sections and to get the usergroup images (need some help)

Also added an image for you to see the logging in! There's a webbrowser in there, but has nothing to do with the log-in script.
Quote:update 1:

recoded EVERYTHING, loading times have been decreased by 13 sec. loading time was 10-15 sec now it's only 1-3 sec.

Added 4 functions:
* Get local time
* Get location
* Get gender
* Get date of birth

I also made sure proper error checks are made if the specified UID is not linked to a user.

*updated preview images because new functions were added




CURRENT FOCUS: Recoding most of the functions, maybe adding some more (optimization) Making the code FASTER, and making a thread layout (would be nice if someone did it FOR me).

It's working for ALL CodeCommunity users
Spoiler:
[Image: 6hxTYiO.png]



Anyone's uid works
Spoiler:
[Image: rASGStl.png]

[Image: CDQBzo7.png]



And yes, moving images (.gif) actually move in the form.


You can log in with your account!
This is super alpha.
Spoiler:
[Image: F3ZvH3k.png]



As of update 3 we now have broken img and CCP (codecommunity points)!
Spoiler:
[Image: fbn9u0T.png]




I'm happy to receive suggestions!
I've already got 1 suggestion for making it possible to view the whole memberlist with their UID next to it, would you like that??

How will implementation be?
Easy, you'll just have to insert the project into your own. A tutorial on this will come when this is ready. (after alpha/beta)

Is it open-source?
It's open-source, since a lot of people wanted it to be. You can view a source-download right here: [link]


RE: [VB] API for CodeCommunity [WIP] - Villain - 07-23-2013

Damn this is nice I would love to get it.

Also, what theme is that?


RE: [VB] API for CodeCommunity [WIP] - Platinum - 07-23-2013

(07-23-2013, 12:27 PM)Villain Wrote: Damn this is nice I would love to get it.

Also, what theme is that?

It's Windows 8 RT, you can get it from here: http://mare-m.deviantart.com/art/Windows-8-RTM-Theme-for-Windows-7-318932206
Please understand that the form is just windows default, but I have a custom theme installed.


RE: [VB] API for CodeCommunity [WIP] - Blue - 07-23-2013

Can't wait for release been seeing the progress and it looks great!


RE: [VB] API for CodeCommunity [WIP] - Eternity - 07-23-2013

Why are you working on the easy bit ?
Go over to thread lookup and posting via VB Wink

Good work though, Webrequest/RegEx ?


RE: [VB] API for CodeCommunity [WIP] - Platinum - 07-23-2013

(07-23-2013, 04:54 PM)Blue Wrote: Can't wait for release been seeing the progress and it looks great!

Thanks brah, far from done though!


(07-23-2013, 05:52 PM)Eternity Wrote: Why are you working on the easy bit ?
Go over to thread lookup and posting via VB Wink

Good work though, Webrequest/RegEx ?

Because the easy bit is... wel... easy.. I use both webrequest and regex but depends for each function <- it became kind of quick now.
I need to work on logging in first but Sap will need to help me with that or Breshie.


RE: [VB] API for CodeCommunity [WIP] - Eternity - 07-23-2013

(07-23-2013, 06:04 PM)Platinum Wrote:
(07-23-2013, 04:54 PM)Blue Wrote: Can't wait for release been seeing the progress and it looks great!

Thanks brah, far from done though!


(07-23-2013, 05:52 PM)Eternity Wrote: Why are you working on the easy bit ?
Go over to thread lookup and posting via VB Wink

Good work though, Webrequest/RegEx ?

Because the easy bit is... wel... easy.. I use both webrequest and regex but depends for each function <- it became kind of quick now.
I need to work on logging in first but Sap will need to help me with that or Breshie.

I have a login system that works with CC if you want it PM me.


RE: [VB] API for CodeCommunity [WIP] - Platinum - 07-23-2013

(07-23-2013, 06:07 PM)Eternity Wrote:
(07-23-2013, 06:04 PM)Platinum Wrote:
(07-23-2013, 04:54 PM)Blue Wrote: Can't wait for release been seeing the progress and it looks great!

Thanks brah, far from done though!


(07-23-2013, 05:52 PM)Eternity Wrote: Why are you working on the easy bit ?
Go over to thread lookup and posting via VB Wink

Good work though, Webrequest/RegEx ?

Because the easy bit is... wel... easy.. I use both webrequest and regex but depends for each function <- it became kind of quick now.
I need to work on logging in first but Sap will need to help me with that or Breshie.

I have a login system that works with CC if you want it PM me.

Sap is already helping me don't worry ^^


RE: [VB] API for CodeCommunity [WIP] - Eternity - 07-23-2013

(07-23-2013, 06:08 PM)Platinum Wrote:
(07-23-2013, 06:07 PM)Eternity Wrote:
(07-23-2013, 06:04 PM)Platinum Wrote:
(07-23-2013, 04:54 PM)Blue Wrote: Can't wait for release been seeing the progress and it looks great!

Thanks brah, far from done though!


(07-23-2013, 05:52 PM)Eternity Wrote: Why are you working on the easy bit ?
Go over to thread lookup and posting via VB Wink

Good work though, Webrequest/RegEx ?

Because the easy bit is... wel... easy.. I use both webrequest and regex but depends for each function <- it became kind of quick now.
I need to work on logging in first but Sap will need to help me with that or Breshie.

I have a login system that works with CC if you want it PM me.

Sap is already helping me don't worry ^^

Alright Smile


RE: [VB] API for CodeCommunity [WIP] - Shebang - 07-23-2013

If you're looking to get the usertitle still (says so in your focus), here's a solution.

Code:
Dim x As String = New IO.StreamReader(Net.WebRequest.Create("http://www.codecommunity.net/member.php?action=profile&uid=" & UID).GetResponse.GetResponseStream).ReadToEnd Return Split(Split(x, "<!-- start: member_profile_groupimage -->")(1).Split(">")(0), "alt=""")(1).Split("""")(0)

Just FYI, Split() is twice as fast as RegEx (if that's what you are using).