Box Title
Box Message


Box Title
Box Message


Invite Your Friends!

 



Add from Address Book

 
New Game Shout
Type any game

No Game Selected

Type your shout above. Afterwards, enter the game you wish to shout about to the left. By selecting a game you're more likely to get a response to what you need. You can choose not to enter a specific game if you'd like.

ex. I'm stuck in a room with a box and a gnome. How do I get out?

 
 

Working with the Pwned Platform

Talk about the Pwned Platform. Ask questions, get answers :D

Working with the Pwned Platform

Postby pwned (mod-ular) » Fri Aug 27, 2010 11:21 pm

Welcome to the developers forum!

If this is your first time hearing about it, check out http://api.pwned.com/docs and read our documentation. Get a little taste of how it it works.

The platform is build using the OAuth 1.0 protocol, so what this means is that you don't have to store credentials of users, thus taking a heavy burden off your shoulders.

If you've never worked with OAuth, I would recommend checking out http://oauth.net and read up on the spec.

First thing is first, create an application! http://api.pwned.com/newapp

Once you create an application, you will receive the Consumer Key and Consumer Secret. You will need these during the OAuth process.

As you may or may not know, there are 3 OAuth Endpoints in the authorization process, they are:
http://api.pwned.com/v1/oauth/request_token
http://api.pwned.com/v1/oauth/authorize
http://api.pwned.com/v1/oauth/access_token

As you can see in the documentation, there are a grip of API endpoints that you can hit. There are some requirements for everything that might want to access, so make sure you read what they are.

If you want to access some of our public APIs, all you need to do is register and application and make a request with your consumer key and consumer secret.

As of right now, all of our data is being returned in JSON format, so keep that in mind while writing the response parser.

Side note, we do have an OOB method so you can authenticate users from desktop/mobile platforms. You must send me a PM requesting access to this. It is still in development, also we are taking a different approach on it, so it needs more testing.

Last, but not least, please ask questions if you get stuck or don't understand. We're here to help you out.

Welcome!

pwned (mod-ular)
Left 4 Pwned
Pwned Profile
 
Posts: 569
Joined: Tue Dec 08, 2009 6:40 pm

Re: Working with the Pwned Platform

Postby adam zombie » Thu Jul 26, 2012 7:31 pm

I keep getting this,

Fatal error: Class 'OAuth' not found in C:\wamp\www\Pwned\Pwned-OAuth-PHP\me.php on line 4
PHP Fatal error: Class 'OAuth' not found in C:\wamp\www\Pwned\Pwned-OAuth-PHP\me.php on line 4


I have the oauth.dll loaded proper for php
Only thing I can find, is that I do not have a proper oauth class included,
Or do I just need some authentication?

Code: Select all
OAuth {
/* Properties */
public $debug ;
public $sslChecks ;
public $debugInfo ;
/* Methods */
public __construct ( string $consumer_key , string $consumer_secret [, string $signature_method = OAUTH_SIG_METHOD_HMACSHA1 [, int $auth_type = 0 ]] )
public void __destruct ( void )
public bool disableDebug ( void )
public bool disableRedirects ( void )
public bool disableSSLChecks ( void )
public bool enableDebug ( void )
public bool enableRedirects ( void )
public bool enableSSLChecks ( void )
public mixed fetch ( string $protected_resource_url [, array $extra_parameters [, string $http_method [, array $http_headers ]]] )
public string generateSignature ( string $http_method , string $url [, mixed $extra_parameters ] )
public array getAccessToken ( string $access_token_url [, string $auth_session_handle [, string $verifier_token ]] )
public array getCAPath ( void )
public string getLastResponse ( void )
public string getLastResponseHeaders ( void )
public array getLastResponseInfo ( void )
public string getRequestHeader ( string $http_method , string $url [, mixed $extra_parameters ] )
public array getRequestToken ( string $request_token_url [, string $callback_url ] )
public mixed setAuthType ( int $auth_type )
public mixed setCAPath ([ string $ca_path [, string $ca_info ]] )
public mixed setNonce ( string $nonce )
public void setRequestEngine ( int $reqengine )
public mixed setRSACertificate ( string $cert )
public bool setSSLChecks ( int $sslcheck )
public mixed setTimestamp ( string $timestamp )
public bool setToken ( string $token , string $token_secret )
public bool setVersion ( string $version )
}

adam zombie
Pwned Profile
 
Posts: 2698
Joined: Tue Dec 08, 2009 6:40 pm
Location: Michi-cant


Return to Pwned Platform

cron