コード例 #1
0
 def _authorize( self ):
     # flickr client
     client = FlickrClient( api_key=True, secret=True )
     # authenticate
     authtoken = client.authenticate()
     # write it to the settings file
     if ( authtoken ):
         xbmcplugin.setSetting( "authtoken", authtoken )
コード例 #2
0
 def _authorize(self):
     # flickr client
     client = FlickrClient(api_key=True, secret=True)
     # authenticate
     authtoken = client.authenticate()
     # write it to the settings file
     if (authtoken):
         xbmcplugin.setSetting("authtoken", authtoken)