Raised This Month: $12 Target: $400
 3% 

Need help: Parse JSON API


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Miggy
Member
Join Date: Mar 2015
Old 08-06-2015 , 09:30   Need help: Parse JSON API
Reply With Quote #1

Hey guys.

I've been working on and off on a plugin for the past few months that would serve as a Utility Plugin for UGC and working as a super light anticheat(nothing like smac or anakins AC plugins).

For a some time now I've been stuck on an issue, Importing Bans from UGC banlist.
I made a little API of their banlist page but have not been able to figure out a way to Parse it.

http://kimonolabs.com/api/efs80kbe?a...ujhsJzvFKXgc8n
I'm open to any and all ideas x.x
Miggy is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 08-06-2015 , 10:11   Re: Need help: Parse JSON API
Reply With Quote #2

You should remove the URL and rather upload an attachment of the output since your API key is shown on the URL (I don't think you want others to know your API key).

Also, do you not have the option to pick what format you want the data to be returned in? For example the steam web API allows for json, XML and VDF formats. If you can change that, ask for a VDF output so that you can use the keyvalues API to traverse through the file.

Otherwise, search through the SM extensions forum and see if you can find a json parser I guess (on mobile so I can't search now).
Potato Uno is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 08-06-2015 , 11:40   Re: Need help: Parse JSON API
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=195557
https://forums.alliedmods.net/showth...84604?t=184604

Last edited by Miu; 08-06-2015 at 11:41.
Miu is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-06-2015 , 15:33   Re: Need help: Parse JSON API
Reply With Quote #4

keep in mind (not sure if this is even our case) but when you request a response from a webserver the entire text format might not find within the string limits. I ran into this issue trying to make a twitch extension for sm.
Mitchell is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode