mirror of
https://github.com/friendica/friendica
synced 2025-01-23 13:39:47 +00:00
23 lines
384 B
PHP
23 lines
384 B
PHP
|
<?php
|
||
|
|
||
|
namespace Friendica\Security\OAuth1;
|
||
|
|
||
|
class OAuthConsumer
|
||
|
{
|
||
|
public $key;
|
||
|
public $secret;
|
||
|
public $callback_url;
|
||
|
|
||
|
function __construct($key, $secret, $callback_url = null)
|
||
|
{
|
||
|
$this->key = $key;
|
||
|
$this->secret = $secret;
|
||
|
$this->callback_url = $callback_url;
|
||
|
}
|
||
|
|
||
|
function __toString()
|
||
|
{
|
||
|
return "OAuthConsumer[key=$this->key,secret=$this->secret]";
|
||
|
}
|
||
|
}
|