TijsVerkoyen\Dropbox\Dropbox::getUserAgent PHP 메소드

getUserAgent() 공개 메소드

Our version will be prepended to yours. It will look like: "PHP Dropbox/ "
public getUserAgent ( ) : string
리턴 string
    public function getUserAgent()
    {
        return (string) 'PHP Dropbox/' . self::VERSION . ' ' . $this->userAgent;
    }

Usage Example

예제 #1
0
 /**
  * Tests Dropbox->getUserAgent()
  */
 public function testGetUserAgent()
 {
     $this->dropbox->setUserAgent('testing/1.0.0');
     $this->assertEquals('PHP Dropbox/' . Dropbox::VERSION . ' testing/1.0.0', $this->dropbox->getUserAgent());
 }