Register for your free account! | Forgot your password?

Go Back   elitepvpers > News & More > e*pvp News > e*pvp News - EN
You last visited: Today at 21:13

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

 

24h Treasure-lock & TBM API for developers

Reply
 
Old   #1
 
elite*gold: 209
The Black Market: 135/1/0
Join Date: Jul 2003
Posts: 16,603
Received Thanks: 17,591
24h Treasure-lock & TBM API for developers

Today we have implemented another little Update for elitepvpers' The Black Market.

A few weeks ago some members suggested the idea of a time dependent elite*gold lock to prevent scammers.

As usual we've listened to the voice of the community. From now on all Treasures in The Black Market are locked for 24 hours after they were sold. That means that the seller can't use the elite*gold he received for 24 hours.

So you have enough time to report scamming in the elite*gold support forum to get your elite*gold back.

Furthermore we have added an TBM API for all the developers in our community. After entering a secret word which you should keep secret (Who would have thought it?), you have the possibility to retrieve your transactions in the JSON data format to devolp your own applications (e.g. shop integrations)

Meanwhile some of you will have noticed that we have removed the possibilty of paying with Paypal. We did that because there was more credit card fraud lately.

As an replacement we have integrated MoneyBrookes which have the problem better under control.

If you find errors we are happy about every Bug-Report. You can send us a report in the Complaint Area or direct here in the topic.

Thats it, have a good stay on elitepvpers and much fun with the new features.



Lowfyr is offline  
Thanks
11 Users
Old   #2


 
elite*gold: 7
Join Date: Aug 2008
Posts: 6,786
Received Thanks: 4,930
A small example, that shows how to use the API with pure JavaScript.

PHP Code:
function CreateXMLHttpRequest()
{
    try 
    {
        
// Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
        
return new XMLHttpRequest();
    } 
    catch(
e
    {
        try 
        {
            
// MS Internet Explorer (ab v6)
            
return new ActiveXObject("Microsoft.XMLHTTP");
        } 
        catch(
e
        {
            try {
                
// MS Internet Explorer (ab v5)
                
return new ActiveXObject("Msxml2.XMLHTTP");
            } 
            catch(
e
            {
                return 
null;
            }
        }
    }
}

var 
transactions;
var 
user_id 'YOURUSERID';
var 
transaction_type 'received'//received, sent or all
var secretword 'YOURSECRETWORD';
var 
transaction_date = new Date();
var 
xmlHttp CreateXMLHttpRequest();

if(
xmlHttp)
{
    
xmlHttp.open('GET''http://www.elitepvpers.com/theblackmarket/api/transactions.php?u=' user_id '&type=' transaction_type '&secretword=' secretwordtrue);
    
xmlHttp.onreadystatechange = function() {
        if(
xmlHttp.readyState == 4)
        {
            
transactions = eval('(' xmlHttp.responseText ')');
            
            if(
transactions.length 0)
            {
                for(var 
0transactions.lengthi++)
                {
                    
transaction_date.setTime(transactions[i]['dateline'] * 1000);
                    
console.log('---------------------------------------------');
                    
console.log('Transaction ID: ' transactions[i]['eg_transactionid']);
                    
console.log('EG Amount: ' transactions[i]['amount']);
                    
console.log('Received From: ' transactions[i]['eg_fromusername'] + '(' transactions[i]['eg_from'] + ')');
                    
console.log('Transation Date: ' transaction_date.toLocaleString());
                }
            }
        }
    };
    
xmlHttp.send(null);



The same example using JavaScript and the jQuery Framework.
PHP Code:
var user_id 'YOURUSERID';
var 
transaction_type 'received'//received, sent or all
var secretword 'YOURSECRETWORD';
var 
transaction_date = new Date();

if(
jQuery)
{
    $.
getJSON('http://www.elitepvpers.com/theblackmarket/api/transactions.php?u=' user_id '&type=' transaction_type '&secretword=' secretword, function(transactions){
       if(
transactions.length 0)
            {
                for(var 
0transactions.lengthi++)
                {
                    
transaction_date.setTime(transactions[i]['dateline'] * 1000);
                    
console.log('---------------------------------------------');
                    
console.log('Transaction ID: ' transactions[i]['eg_transactionid']);
                    
console.log('EG Amount: ' transactions[i]['amount']);
                    
console.log('Received From: ' transactions[i]['eg_fromusername'] + '(' transactions[i]['eg_from'] + ')');
                    
console.log('Transation Date: ' transaction_date.toLocaleString());
                }
            }
    });



Cholik is offline  
Thanks
7 Users
Old   #3
 
elite*gold: 0
Join Date: Sep 2009
Posts: 159
Received Thanks: 85
walter is right
archlord0000 is offline  
Old   #4
ギルガメッシュ




 
elite*gold: 0
The Black Market: 257/0/0
Join Date: Apr 2010
Posts: 9,452
Received Thanks: 3,573
Could you please add an option to see if the money is from treasure or not?
Just simple add "treasure" to the note, would be nice because I need this for my iMoney programm.

Regards,
Shawak
Shawak is offline  
Reply

Tags
tbm



« Previous Thread | Next Thread »

Similar Threads
[TREASURE]Kaufe 480 E*GOLD-> TREASURE
Hallo, heute kaufe ich 480 E*GOLD, die Pin-Codes sind in der treasure enthalten. Es ist eine 10€ PSC und eine 5€ PSC. LINK Zur Treasure : Klick ...
3 Replies - elite*gold Trading
24h Treasure Lock Verbessern
moin heute so ggn 20uhr is ein trade geplatzt weil das lock der treasure da war nun das sollte man verbessern und zwar so: du kaufst die Treasure...
9 Replies - Polls
Need Developers
Hi, my friend is hosting a dekaron pserver, and is planning to go all the way. He has an high spec dedi server, a website, now all he needs are...
14 Replies - Dekaron Private Server
Betteln an die lock mob götter S 15 lock mob
dieser thread geht vor allen dingen an banjo aber wers sonst noch kann kann den lock mob ja auch mal updaten also pls lock mob für s15/16
1 Replies - Metin2 Main - Discussions / Questions



All times are GMT +1. The time now is 21:13.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.