Register for your free account! | Forgot your password?

You last visited: Today at 11:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



TBM API v2

Discussion on TBM API v2 within the General Coding forum part of the Coders Den category.

Closed Thread
 
Old   #1
Administrator
 
lordsill's Avatar
 
elite*gold: 26516
Join Date: May 2011
Posts: 21,003
Received Thanks: 2,346
Staff TBM API v2

TBM API v2

With the help of the new API you now have the possibility to create more comprehensive applications for our Black Market than ever before.
A list of all current endpoints can be found below. Please note that for some endpoints there will be a request fee, which will be automatically deducted from your elite*gold balance.
Are you missing any features that you would like to have and that would fit well to the Black Market? Then please post your suggestions here:

All endpoints set the following parameters for authentication in addition to the mentioned endpoint-specific parameters:
Parameter: u (unsigned int) - This is your UserID that you have here on the forum.
Parameter: secretword (string) A secretword you set yourself - This is not your forum password! Your secretword can be set here:

All endpoints are also accessible via GET and POST and via a JSON payload (POST only, be sure to set Content-Type to application/json). Response will always be JSON.

elite*gold
URL:
Description:
Shows you all transactions involving your account
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
typestringNoallShows you only transaction of a certain type. Accepted: all,sent,received
pageunsigned intNo1Shows you page X of the transactions.
hide-reversedbooleanNofalseHides transactions that have been reversed.
Response:



URL:
Description:
Send elite*gold to another user
Fee: 1 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
tounsigned intYes Userid of the recipient
amountunsigned intYes Amount of elite*gold you want to send to the user
notestringNo Custom note for the transaction
Response:


Treasures
URL:
Description:
Get treasures created or bought by your account
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
pageunsigned intNo1Shows a specific page of the results
typestringNoallShows only a specific type of treasures. Accepts: unsold,sold,bought,all
Response:



URL:
Description:
Get information about a specific treasure
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
idunsigned intYes Id of the treasure
Response:



URL:
Description:
Create a new treasure
Fee: 1 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
titlestringYes Public visible title of the treasure (should be some informations about the content, so other users knows what they are buying)
contentstringYes Content of the treasure that the buyer will be able to see after he bought the treasure
costunsigned intYes How much should it cost to buy this treasure?
Response:



URL:
Description:
Buy a treasure that is still for sale
Fee: 1 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
idunsigned intYes Id of the treasure you want to buy
Response:


Trades
URL:
Description:
Shows you all trades involving your account
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
typestringNoallShow only a specific type of trade. Accepts: all,requested,received
statusstringNoallShow only trades with in a specific state. Accepts: pending,accepted,waiting_for_approval,aborted,all
pageunsigned intNo1Shows a specific page of the results
Response:



URL:
Description:
Get trade details for a specific trade
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
idunsigned intYes Id of the trade
Response:



URL:
Description:
Generate the trade request URL
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
tunsigned intYes Id of the trading thread
Response:



URL:
Description:
Create a trade request
Fee: 1 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
tunsigned intYes Id of the trading thread
middlemanunsigned intNo UserId of the middleman you want to use for this trade
notestringNo Visible note for the trade (your trading partner can see this before accepting the trade!)
privatestringNo Private note that is visible for your trading partner after accepting the trade (or after middleman approved the trade)
Response:



URL:
Description:
Accept, Reject or approve a trade
Fee: 1 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
tradeunsigned intYes Id of the trade you want to update
statusstringYes The operation you want to do. Accepts: accept,approve,reject
notestringNo Visible note for this trade
privatestringNo Private note for this trade (only visible to your trading partner (after accepting/approve the trade) and middleman)
Response:


Other
URL:
Description:
Get some information about an account
Fee: 0 elite*gold
Parameters:
NameTypeRequiredDefaultDescription
quintNo0UserID of the user you want to get informations about (eg 3493587)
Response:
The ranks field only contains certain ranks (not all ranks we have), so far those are:
  • administrator
  • global_moderator
  • community_manager
  • moderator
  • level_3
  • level_2
  • subscription_elite
  • subscription_premium
  • elite*gold_trader
  • id_verified
  • sponsor
  • 2_factor_authenticated (for this the user needs to enable 2 Factor Authentication and needs to enable the badge also)
lordsill is offline  
Thanks
22 Users
Old 08/01/2023, 09:04   #2
Administrator
 
lordsill's Avatar
 
elite*gold: 26516
Join Date: May 2011
Posts: 21,003
Received Thanks: 2,346
New Update:
* get-user-info now allows you to get information also for other users (use the optional qu parameter for this)
* the bought field for elite*gold is always null for other users
* get-user-info got some new fields:
  • statistics
  • ranks
lordsill is offline  
Thanks
3 Users
Old 10/20/2025, 12:10   #3
Administrator
 
lordsill's Avatar
 
elite*gold: 26516
Join Date: May 2011
Posts: 21,003
Received Thanks: 2,346
New Update:
Using get-user-info, you can now obtain additional ranks if a user has them:
  • developer
  • designer
  • founder
  • support
  • bot
  • editor
  • event_planner
  • guardian
  • legend
  • former_staff
  • former_volunteer
  • og_member
lordsill is offline  
Closed Thread


Similar Threads Similar Threads
Public War Rock Stats API / Öffentliche War Rock Stats API
10/16/2013 - WarRock - 11 Replies
Hallo, hier eine Kleinigkeit die ihr für euren Clan benutzen könnt: http://wa-sta.net/other/api/ Damit könnt ihr z.B. auf eurer Clanseite einbinden, ob eure Member online sind, die Statistiken von ihnen etc.
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_
04/08/2012 - elite*gold Trading - 2 Replies
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_uri URL is not properly formatted Das bekomme ich wenn ich ne App installiere... ich habe schon 3 Apps richtig installiert, danach kam immer das bei anderen Apps die ich installiert habe.. was heisst das? redirect_uri URL is not properly formatted
[GUIDE]Api Sheild to be against API Tools!
10/15/2011 - Metin2 PServer Guides & Strategies - 8 Replies
I got lot's of pm's from people asking me about api tool shield , so i decided to make a guide to show ya all how to get rid of the nowadays hackers in your servers ... First ... Open CONFIG of each channel , set pk_server:0 to pk_server:1 then in set adminpage_ip1 with adminpage_ip1: 192.168.2.(write yur real ip here) without quotes or space , just write it after the 192.168.2 directly like this .. example : adminpage_ip1: 192.168.2.ip And keep doing that for all CONFIG of all...
[ ALL IN ONE ] Lizenserver 7120 | API Server | API Tools
07/07/2011 - Metin2 PServer Guides & Strategies - 45 Replies
Hallo @all ServerAdmins! Hier möchte ich euch ein Projekt von mir vorstellen der vieles einfacher macht. Was ist das? Ein Arbeitsplatz für Administratoren von Mt2 Server. Was kann es? behebt das Problem socket_connect: HOST 220.95.239.40:7120, could not connect.
[HELP] Api tool v2 and other api's
05/28/2011 - Metin2 Private Server - 0 Replies
Hi, can someone tell me where i can find the api tool v2 fix? and if there are other types of API tools Thank you very much



All times are GMT +1. The time now is 11:50.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.