Mmanos\Social\Social::oauthSpec PHP Method

oauthSpec() public method

Return the OAuth spec used by the given service provider.
public oauthSpec ( string $provider ) : integer
$provider string
return integer
    public function oauthSpec($provider)
    {
        $service = $this->service($provider);
        if (false !== stristr(get_class($service), 'OAuth1')) {
            return 1;
        } else {
            if (false !== stristr(get_class($service), 'OAuth2')) {
                return 2;
            }
        }
        return null;
    }