/**
  * Constructor
  *
  * @param $url
  */
 public function __construct($url)
 {
     $this->hlp = plugin_load('helper', 'oauth');
     $credentials = new Credentials($this->hlp->getKey($this->getAdapterName()), $this->hlp->getSecret($this->getAdapterName()), $url);
     $this->storage = new oAuthStorage();
     $serviceFactory = new ServiceFactory();
     $serviceFactory->setHttpClient(new oAuthHTTPClient());
     $this->oAuth = $serviceFactory->createService($this->getServiceName(), $credentials, $this->storage, $this->getScope());
 }