a4k-openproject / repository.myaccounts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

repository.myaccounts

Welcome to the My Accounts Project

Kodi developers one stop shop for common account information accessed under one roof that all addons can share. This allows users to setup accounts once and addons access that data.

<dir>
    <info compressed="false">https://raw.githubusercontent.com/a4k-openproject/repository.myaccounts/master/zips/addons.xml</info>
    <checksum>https://raw.githubusercontent.com/a4k-openproject/repository.myaccounts/master/zips/addons.xml.md5</checksum>
    <datadir zip="true">https://raw.githubusercontent.com/a4k-openproject/repository.myaccounts/master/zips/</datadir>
</dir>

To add My Accounts as a dependency add the following to your addon's addon.xml file between the <requires></requires> tag.

<import addon="script.module.myaccounts" version="1.0.0" /> Addon developers can access My Accounts as simply as

How to call My Accounts settings

You can use import myaccounts once the dependency is added to your addon. The following lists the functions that can be called that will respond with a dictionary and the supplied key and value.

myaccount.getAll()

This function call will provide all available accounts as a dictionary for each account handled. If we called accounts = myaccounts.getAll() The returned data will be as follows. accounts ={'premiumize': {username': '', 'token': ''}, 'alldebrid': {'username': '', 'token': ''}, 'tmdb': {'username': '', 'password': '', 'api_key': '', 'session_id': ''}, 'realdebrid': {'username': '', 'token': '', 'secret': '', 'refresh': '', 'client_id': ''}, 'ororo': {'password': '', 'email': ''}, 'tvdb': {'api_key': ''}, 'filepursuit': {'api_key': ''}, 'trakt': {'username': '', 'token': '', 'expires': '', 'refresh': ''}, 'imdb': {'user': ''}, 'easyNews': {'username': '', 'password': ''}, 'furk': {'username': '', 'api_key': '', 'password': ''}, 'fanart_tv': {'api_key': ''}}

myaccount.getTrakt()

Returns trakt only account info trakt': {'username': '', 'token': '', 'expires': '', 'refresh': ''}

myaccount.getAllDebrid()

Returns all debrid account information supported (currently All-Debrid, Premiumize.me, Real-Debrid) {premiumize': {'username': '', 'token': ''}, 'alldebrid': {'username': '', 'token': ''}, 'realdebrid': {'username': '', 'token': '', 'secret': '', 'refresh': '', 'client_id': ''}}

myaccount.getAD()

alldebrid': {'username': '', 'token': ''}

myaccount.getPM()

premiumize': {'username': '', 'token': ''}

myaccount.getRD()

realdebrid': {'username': '', 'token': '', 'secret': '', 'refresh': '', 'client_id': ''}

myaccount.getAllMeta()

{'tmdb': {'username': '', 'password': '', 'api_key': '', 'session_id': ''}, 'tvdb': {'api_key': ''}, 'imdb': {'user': ''}, 'fanart_tv': {'api_key': ''}}

myaccount.getFanart_tv()

fanart_tv': {'api_key': ''}

myaccount.getTMDb()

tmdb': {'username': '', 'password': '', 'api_key': '', 'session_id': ''}

myaccount.getTVDb()

tvdb': {'api_key': ''}

myaccount.getIMDb()

imdb': {'user': ''}

getAllScraper()

{'ororo': {'password': '', 'email': ''}, 'filepursuit': {'api_key': ''}, 'easyNews': {'username': '', 'password': ''}, 'furk': {'username': '', 'api_key': '', 'password': ''}}

getFilepursuit()

filepursuit: {'api_key': ''}

myaccount.getFurk()

furk: {'username': '', 'api_key': '', 'password': ''}

myaccount.getEasyNews()

easyNews: {'username': '', 'password': ''}

myaccount.getOrro()

ororo: {'password': '', 'email': ''}

About

License:Apache License 2.0


Languages

Language:Python 100.0%