blob: 9f0bf27fb22ac28c5e2e0f48be2ecd46701bc33f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
namespace OAuthTest\Mocks\OAuth1\Service;
use OAuth\OAuth1\Service\AbstractService;
use OAuth\Common\Http\Uri\Uri;
use OAuth\OAuth1\Token\StdOAuth1Token;
class Mock extends AbstractService
{
public function getRequestTokenEndpoint()
{
return new Uri('http://pieterhordijk.com/token');
}
public function getAuthorizationEndpoint()
{
return new Uri('http://pieterhordijk.com/auth');
}
public function getAccessTokenEndpoint()
{
return new Uri('http://pieterhordijk.com/access');
}
protected function parseRequestTokenResponse($responseBody)
{
return new StdOAuth1Token();
}
protected function parseAccessTokenResponse($responseBody)
{
return new StdOAuth1Token();
}
}
|