{"id":14065546,"url":"https://github.com/TodoLodo/cod-python-api","last_synced_at":"2025-07-29T20:33:12.200Z","repository":{"id":45665727,"uuid":"513954612","full_name":"TodoLodo/cod-python-api","owner":"TodoLodo","description":"Call Of Duty API Library for python","archived":true,"fork":false,"pushed_at":"2022-11-25T06:26:27.000Z","size":780,"stargazers_count":61,"open_issues_count":4,"forks_count":19,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-07-19T23:27:31.740Z","etag":null,"topics":["api","api-wrapper","callofduty","cod","cod-api","cod-api-python"],"latest_commit_sha":null,"homepage":"https://cod-python-api.todolodo.xyz","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TodoLodo.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"TodoLodo","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.buymeacoffee.com/todolodo2089","https://www.paypal.com/paypalme/engineer15"]}},"created_at":"2022-07-14T15:31:33.000Z","updated_at":"2025-05-12T10:36:11.000Z","dependencies_parsed_at":"2023-01-23T10:30:44.555Z","dependency_job_id":null,"html_url":"https://github.com/TodoLodo/cod-python-api","commit_stats":null,"previous_names":["todolodo2089/cod-python-api"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/TodoLodo/cod-python-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TodoLodo%2Fcod-python-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TodoLodo%2Fcod-python-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TodoLodo%2Fcod-python-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TodoLodo%2Fcod-python-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TodoLodo","download_url":"https://codeload.github.com/TodoLodo/cod-python-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TodoLodo%2Fcod-python-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267754854,"owners_count":24139435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-wrapper","callofduty","cod","cod-api","cod-api-python"],"created_at":"2024-08-13T07:04:33.183Z","updated_at":"2025-07-29T20:33:11.874Z","avatar_url":"https://github.com/TodoLodo.png","language":"Python","funding_links":["https://github.com/sponsors/TodoLodo","https://www.buymeacoffee.com/todolodo2089","https://www.paypal.com/paypalme/engineer15","https://paypal.me/werseter"],"categories":["Python"],"sub_categories":[],"readme":"===================\n**cod-python-api**\n===================\n\n.. meta::\n    :description: Call Of Duty API Library for python with the implementation of both public and private API used by activision on callofduty.com\n    :key: CallOfDuty API, CallOfDuty python API, CallOfDuty python\n\n.. image:: https://github.com/TodoLodo/cod-python-api/actions/workflows/codeql-analysis.yml/badge.svg?branch=main\n    :target: https://github.com/TodoLodo/cod-python-api.git\n\n.. image:: https://img.shields.io/endpoint?url=https://cod-python-api.todolodo.xyz/stats?q=version\n    :target: https://badge.fury.io/py/cod-api\n\n.. image:: https://img.shields.io/endpoint?url=https://cod-python-api.todolodo.xyz/stats?q=downloads\n    :target: https://badge.fury.io/gh/TodoLodo2089%2Fcod-python-api\n\n------------------------------------------------------------------------------------------------------------------------\n\n**Call Of Duty API Library** for **python** with the implementation of both public and private API used by activision on\ncallofduty.com\n\n====\nDevs\n====\n* `Todo Lodo`_ \n* `Engineer15`_\n\n.. _Todo Lodo: https://todolodo.xyz\n.. _Engineer15: https://github.com/Engineer152\n\n============\nContributors\n============\n* `Werseter`_\n\n.. _Werseter: https://github.com/Werseter\n\n===============\nPartnered Code\n===============\n`Node-CallOfDuty`_ by: `Lierrmm`_\n\n.. _Node-CallOfDuty: https://github.com/Lierrmm/Node-CallOfDuty\n.. _Lierrmm: https://github.com/Lierrmm\n\n=============\nDocumentation\n=============\nThis package can be used directly as a python file or as a python library.\n\nInstallation\n============\n\nInstall cod-api library using `pip`_:\n\n.. code-block:: bash\n\n    pip install -U cod-api\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\nUsage\n=====\n\nInitiation\n----------\n\nImport module with its classes:\n\n.. code-block:: python\n\n    from cod_api import API\n\n    api = API()\n\n\n.. _`logged in`:\n\nLogin with your sso token:\n\n.. code-block:: python\n\n    api.login('Your sso token')\n\nYour sso token can be found by longing in at `callofduty`_, opening dev tools (ctr+shift+I), going to Applications \u003e\nStorage \u003e Cookies \u003e https://callofduty.com, filter to search 'ACT_SSO_COOKIE' and copy the value.\n\n.. _callofduty: https://my.callofduty.com/\n\nGame/Other sub classes\n----------------------\n\nFollowing importation and initiation of the class ``API``, its associated subclasses can be called by\n``API.subClassName``.\n\nBelow are the available sub classes:\n\n+-------------------+----------+\n| sub class         | category |\n+===================+==========+\n|* `ColdWar`_       | game     |\n+-------------------+----------+\n|* `ModernWarfare`_ | game     |\n+-------------------+----------+\n|* `ModernWarfare2`_| game     |\n+-------------------+----------+\n|* `Vanguard`_      | game     |\n+-------------------+----------+\n|* `Warzone`_       | game     |\n+-------------------+----------+\n|* `Warzone2`_      | game     |\n+-------------------+----------+\n|* `Me`_            | other    |\n+-------------------+----------+\n|* `Shop`_          | other    |\n+-------------------+----------+\n|* `Misc`_          | other    |\n+-------------------+----------+\n\n\n\nFor a detailed description, ``__doc__`` (docstring) of each sub class can be called as shown below:\n\n.. _`ColdWar`:\n\n``ColdWar``:\n\n.. code-block:: python\n\n    from cod_api import API\n\n    api = API()\n\n    # print out the docstring\n    print(api.ColdWar.__doc__)\n\n.. _`ModernWarfare`:\n\n``ModernWarfare``:\n\n.. code-block:: python\n\n    from cod_api import API\n\n    api = API()\n\n    # print out the docstring\n    print(api.ModernWarfare.__doc__)\n\n.. _`ModernWarfare2`:\n\n``ModernWarfare2``:\n\n.. code-block:: python\n\n    from cod_api import API\n\n    api = API()\n\n    # print out the docstring\n    print(api.ModernWarfare2.__doc__)\n\n.. _`Vanguard`:\n\n``Vanguard``:\n\n.. code-block:: python\n\n    from cod_api import API\n\n    api = API()\n\n    # print out the docstring\n    print(api.Vanguard.__doc__)\n\n.. _`Warzone`:\n\n``Warzone``:\n\n.. code-block:: python\n\n    from cod_api import API\n\n    api = API()\n\n    # print out the docstring\n    print(api.Warzone.__doc__)\n\n.. _`Warzone2`:\n\n``Warzone2``:\n\n.. code-block:: python\n\n    from cod_api import API\n\n    api = API()\n\n    # print out the docstring\n    print(api.Warzone2.__doc__)\n\n.. _`Me`:\n\n``Me``:\n\n.. code-block:: python\n\n    from cod_api import API\n\n    api = API()\n\n    # print out the docstring\n    print(api.Me.__doc__)\n\n.. _`Shop`:\n\n``Shop``:\n\n.. code-block:: python\n\n    from cod_api import API\n\n    api = API()\n\n    # print out the docstring\n    print(api.Shop.__doc__)\n\n\n.. _`Misc`:\n\n``Misc``:\n\n.. code-block:: python\n\n    from cod_api import API\n\n    api = API()\n\n    # print out the docstring\n    print(api.Misc.__doc__)\n\nFull Profile History\n--------------------\n\nAny sub class of ``API``  that is of game category, has methods to check a player's combat history.\nNote that before calling any sub class methods of ``API`` you must be `logged in`_.\nMain method is ``fullData()`` and ``fullDataAsync()`` which is available for ``ColdWar``, ``ModernWarfare``,\n``ModernWarfare2``, ``Vanguard``, ``Warzone`` and ``Warzone2`` classes.\n\nHere's an example for retrieving **Warzone** full profile history of a player whose gamer tag is **Username#1234** on platform\n**Battlenet**:\n\n.. code-block:: python\n\n    from cod_api import API, platforms\n    import asyncio\n\n    ## sync\n    # initiating the API class\n    api = API()\n\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving combat history\n    profile = api.Warzone.fullData(platforms.Battlenet, \"Username#1234\") # returns data of type dict\n\n    # printing results to console\n    print(profile)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving combat history\n        profile = await api.Warzone.fullDataAsync(platforms.Battlenet, \"Username#1234\") # returns data of type dict\n\n        # printing results to console\n        print(profile)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\n\nCombat History\n--------------\n\nMain methods are ``combatHistory()`` and ``combatHistoryWithDate()`` for sync environments and ``combatHistoryAsync()``\nand ``combatHistoryWithDateAsync()`` for async environments which are available for all ``ColdWar``, ``ModernWarfare``,\n``ModernWarfare2``, ``Vanguard``, ``Warzone`` and ``Warzone2`` classes.\n\nThe ``combatHistory()`` and ``combatHistoryAsync()`` takes 2 input parameters which are ``platform`` and ``gamertag`` of\ntype `cod_api.platforms`_ and string respectively.\n\nHere's an example for retrieving **Warzone** combat history of a player whose gamer tag is **Username#1234** on platform\n**Battlenet**:\n\n.. code-block:: python\n\n    from cod_api import API, platforms\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving combat history\n    hist = api.Warzone.combatHistory(platforms.Battlenet, \"Username#1234\") # returns data of type dict\n\n    # printing results to console\n    print(hist)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving combat history\n        hist = await api.Warzone.combatHistoryAsync(platforms.Battlenet, \"Username#1234\") # returns data of type dict\n\n        # printing results to console\n        print(hist)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nThe ``combatHistoryWithDate()`` and ``combatHistoryWithDateAsync()`` takes 4 input parameters which are ``platform``,\n``gamertag``, ``start`` and ``end`` of type `cod_api.platforms`_, string, int and int respectively.\n\n``start`` and ``end`` parameters are utc timestamps in microseconds.\n\nHere's an example for retrieving **ModernWarfare** combat history of a player whose gamer tag is **Username#1234567** on\nplatform **Activision** with in the timestamps **1657919309** (Friday, 15 July 2022 21:08:29) and **1657949309**\n(Saturday, 16 July 2022 05:28:29):\n\n.. code-block:: python\n\n    from cod_api import API, platforms\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving combat history\n    hist = api.Warzone.combatHistoryWithDate(platforms.Activision, \"Username#1234567\", 1657919309, 1657949309) # returns data of type dict\n\n    # printing results to console\n    print(hist)\n    \n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving combat history\n        hist = await api.Warzone.combatHistoryWithDateAsync(platforms.Battlenet, \"Username#1234\", 1657919309, 1657949309) # returns data of type dict\n\n        # printing results to console\n        print(hist)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nAdditionally the methods ``breakdown()`` and ``breakdownWithDate()`` for sync environments and ``breakdownAsync()`` and\n``breakdownWithDateAsync()`` for async environments, can be used to retrieve combat history without details, where only\nthe platform played on, game title, UTC timestamp, type ID, match ID and map ID is returned for every match. These\nmethods are available for all ``ColdWar``, ``ModernWarfare``, ``ModernWarfare2``, ``Vanguard``, ``Warzone`` and\n``Warzone2`` classes.\n\nThe ``breakdown()`` and `breakdownAsync()`` takes 2 input parameters which are ``platform`` and ``gamertag`` of type\n`cod_api.platforms`_ and string respectively.\n\nHere's an example for retrieving **Warzone** combat history breakdown of a player whose gamer tag is **Username#1234**\non platform **Battlenet**:\n\n.. code-block:: python\n\n    from cod_api import API, platforms\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving combat history breakdown\n    hist_b = api.Warzone.breakdown(platforms.Battlenet, \"Username#1234\") # returns data of type dict\n\n    # printing results to console\n    print(hist_b)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving combat history breakdown\n        hist_b = await api.Warzone.breakdownAsync(platforms.Battlenet, \"Username#1234\") # returns data of type dict\n\n        # printing results to console\n        print(hist_b)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nThe ``breakdownWithDate()`` and ``breakdownWithDateAsync()`` takes 4 input parameters which are ``platform``,\n``gamertag``, ``start`` and ``end`` of type `cod_api.platforms`_, string, int and int respectively.\n\n``start`` and ``end`` parameters are utc timestamps in microseconds.\n\nHere's an example for retrieving **ModernWarfare** combat history breakdown of a player whose gamer tag is\n**Username#1234567** on platform **Activision** with in the timestamps **1657919309** (Friday, 15 July 2022 21:08:29)\nand **1657949309** (Saturday, 16 July 2022 05:28:29):\n\n.. code-block:: python\n\n    from cod_api import API, platforms\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving combat history breakdown\n    hist_b = api.Warzone.breakdownWithDate(platforms.Activision, \"Username#1234567\", 1657919309, 1657949309) # returns data of type dict\n\n    # printing results to console\n    print(hist_b)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving combat history breakdown\n        hist_b = await api.Warzone.breakdownWithDateAsync(platforms.Activision, \"Username#1234567\", 1657919309, 1657949309) # returns data of type dict\n\n        # printing results to console\n        print(hist_b)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nMatch Details\n-------------\n\nTo retrieve details of a specific match, the method ``matchInfo()`` for sync environments and ``matchInfoAsync()`` for\nasync environments can be used. These methods are available for all ``ColdWar``, ``ModernWarfare``, ``ModernWarfare2``,\n``Vanguard``, ``Warzone`` and ``Warzone2`` classes. Details returned by this method contains additional data than that\nof details returned by the **combat history** methods for a single match.\n\nThe ``matchInfo()`` and ``matchInfoAsync()`` takes 2 input parameters which are ``platform`` and ``matchId`` of type\n`cod_api.platforms`_ and integer respectively.\n\n*Optionally the match ID can be retrieved during your gameplay where it will be visible on bottom left corner*\n\nHere's an example for retrieving **Warzone** match details of a match where its id is **9484583876389482453**\non platform **Battlenet**:\n\n.. code-block:: python\n\n    from cod_api import API, platforms\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving match details\n    details = api.Warzone.matchInfo(platforms.Battlenet, 9484583876389482453) # returns data of type dict\n\n    # printing results to console\n    print(details)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving match details\n        details = await api.Warzone.matchInfoAsync(platforms.Battlenet, 9484583876389482453) # returns data of type dict\n\n        # printing results to console\n        print(details)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nSeason Loot\n-----------\n\nUsing the ``seasonLoot()`` for sync environments and ``seasonLootAsync()`` for async environments, player's obtained\nseason loot can be retrieved for a specific game and this method is available for ``ColdWar``, ``ModernWarfare``,\n``ModernWarfare2`` and ``Vanguard`` classes.\n\nThe ``seasonLoot()`` and ``seasonLootAsync()`` takes 2 input parameters which are ``platform`` and ``matchId`` of type\n`cod_api.platforms`_ and integer respectively.\n\nHere's an example for retrieving **ColdWar** season loot obtained by a player whose gamer tag is **Username#1234** on\nplatform **Battlenet**:\n\n.. code-block:: python\n\n    from cod_api import API, platforms\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving season loot\n    loot = api.ColdWar.seasonLoot(platforms.Battlenet, \"Username#1234\") # returns data of type dict)\n\n    # printing results to console\n    print(loot)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving season loot\n        loot = await api.ColdWar.seasonLootAsync(platforms.Battlenet, \"Username#1234\") # returns data of type dict\n\n        # printing results to console\n        print(loot)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nMap List\n--------\n\nUsing the ``mapList()`` for sync environments and ``mapListAsync()`` for async environments, all the maps and its\navailable modes can be retrieved for a specific game. These methods are available for ``ColdWar``, ``ModernWarfare``,\n``ModernWarfare2`` and ``Vanguard`` classes.\n\nThe ``mapList()`` and ``mapListAsync()`` takes 1 input parameters which is ``platform`` of type `cod_api.platforms`_.\n\nHere's an example for retrieving **Vanguard** map list and available modes respectively on platform PlayStation\n(**PSN**):\n\n.. code-block:: python\n\n    from cod_api import API, platforms\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving maps and respective modes available\n    maps = api.Vanguard.mapList(platforms.PSN) # returns data of type dict\n\n    # printing results to console\n    print(maps)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving season loot\n        maps = await api.Vanguard.mapListAsync(platforms.PSN) # returns data of type dict\n\n        # printing results to console\n        print(maps)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\n\n.. _cod_api.platforms:\n\nplatforms\n---------\n\n``platforms`` is an enum class available in ``cod_api`` which is used to specify the platform in certain method calls.\n\nAvailable ``platforms`` are as follows:\n\n+----------------------+----------------------------------------+\n|Platform              | Remarks                                |\n+======================+========================================+\n|platforms.All         | All (no usage till further updates)    |\n+----------------------+----------------------------------------+\n|platforms.Activision  | Activision                             |\n+----------------------+----------------------------------------+\n|platforms.Battlenet   | Battlenet                              |\n+----------------------+----------------------------------------+\n|platforms.PSN         | PlayStation                            |\n+----------------------+----------------------------------------+\n|platforms.Steam       | Steam (no usage till further updates)  |\n+----------------------+----------------------------------------+\n|platforms.Uno         | Uno (activision unique id)             |\n+----------------------+----------------------------------------+\n|platforms.XBOX        | Xbox                                   |\n+----------------------+----------------------------------------+\n\n``platforms`` can be imported and used as follows:\n\n.. code-block:: python\n\n    from cod_api import platforms\n\n    platforms.All        # All (no usage till further updates)\n\n    platforms.Activision # Activision\n\n    platforms.Battlenet  # Battlenet\n\n    platforms.PSN        # PlayStation\n\n    platforms.Steam      # Steam (no usage till further updates)\n\n    platforms.Uno        # Uno (activision unique id)\n\n    platforms.XBOX       # Xbox\n\nUser Info\n----------\n\nUsing the ``info()`` method in sub class ``Me`` of ``API`` user information can be retrieved of the sso-token logged in\nwith\n\n.. code-block:: python\n\n    from cod_api import API\n\n    # initiating the API class\n    api = API()\n\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving user info\n    userInfo = api.Me.info() # returns data of type dict\n\n    # printing results to console\n    print(userInfo)\n\nUser Friend Feed\n----------------\n\nUsing the methods, ``friendFeed()`` for sync environments and ``friendFeedAsync()`` for async environments, in sub class\n``Me`` of ``API``, user's friend feed can be retrieved of the sso-token logged in with\n\n.. code-block:: python\n\n    from cod_api import API\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving user friend feed\n    friendFeed = api.Me.friendFeed() # returns data of type dict\n\n    # printing results to console\n    print(friendFeed)\n    \n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving user friend feed\n        friendFeed = await api.Me.friendFeedAsync() # returns data of type dict\n\n        # printing results to console\n        print(friendFeed)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nUser Event Feed\n----------------\n\nUsing the methods ``eventFeed()`` for sync environments and ``eventFeedAsync()`` for async environments, in sub class\n``Me`` of ``API`` user's event feed can be retrieved of the sso-token logged in with\n\n.. code-block:: python\n\n    from cod_api import API\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving user event feed\n    eventFeed = api.Me.eventFeed() # returns data of type dict\n\n    # printing results to console\n    print(eventFeed)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving user event feed\n        eventFeed = await api.Me.eventFeedAsync() # returns data of type dict\n\n        # printing results to console\n        print(eventFeed)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nUser Identities\n----------------\n\nUsing the methods ``loggedInIdentities()`` for sync environments and ``loggedInIdentitiesAsync()`` for async\nenvironments, in sub class ``Me`` of ``API`` user's identities can be retrieved of the sso-token logged in with\n\n.. code-block:: python\n\n    from cod_api import API\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving user identities\n    identities = api.Me.loggedInIdentities() # returns data of type dict\n\n    # printing results to console\n    print(identities)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving user identities\n        identities = await api.Me.loggedInIdentitiesAsync() # returns data of type dict\n\n        # printing results to console\n        print(identities)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nUser COD Points\n----------------\n\nUsing the methods ``codPoints()`` for sync environments and ``codPointsAsync()`` for async environments, in sub class\n``Me`` of ``API`` user's cod points can be retrieved of the sso-token logged in with\n\n.. code-block:: python\n\n    from cod_api import API\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving user cod points\n    cp = api.Me.codPoints() # returns data of type dict\n\n    # printing results to console\n    print(cp)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving user cod points\n        cp = await api.Me.codPointsAsync() # returns data of type dict\n\n        # printing results to console\n        print(cp)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nUser Accounts\n----------------\n\nUsing the methods ``connectedAccounts()`` for sync environments and ``connectedAccountsAsync()`` for async environments,\nin sub class ``Me`` of ``API`` user's connected accounts can be retrieved of the sso-token logged in with\n\n.. code-block:: python\n\n    from cod_api import API\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving user connected accounts\n    accounts = api.Me.connectedAccounts() # returns data of type dict\n\n    # printing results to console\n    print(accounts)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving user connected accounts\n        accounts = await api.Me.connectedAccountsAsync() # returns data of type dict\n\n        # printing results to console\n        print(accounts)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\nUser settings\n----------------\n\nUsing the methods ``settings()`` for sync environments and ``settingsAsync()`` for async environments, in sub class\n``Me`` of ``API`` user's settings can be retrieved of the sso-token logged in with\n\n.. code-block:: python\n\n    from cod_api import API\n\n    # initiating the API class\n    api = API()\n\n    ## sync\n    # login in with sso token\n    api.login('your_sso_token')\n\n    # retrieving user settings\n    settings = api.Me.settings() # returns data of type dict\n\n    # printing results to console\n    print(settings)\n\n    ## async\n    # in an async function\n    async def example():\n        # login in with sso token\n        await api.loginAsync('your_sso_token')\n\n        # retrieving user settings\n        settings = await api.Me.settingsAsync() # returns data of type dict\n\n        # printing results to console\n        print(settings)\n\n    # CALL THE example FUNCTION IN AN ASYNC ENVIRONMENT\n\n-------------------------------------------------------------------------------------------------------------------------------\n\nDonate\n======\n\n* `Donate Todo Lodo`_ \n* `Donate Engineer152`_\n* `Donate Werseter`_\n\n.. _Donate Todo Lodo: https://www.buymeacoffee.com/todolodo2089\n.. _Donate Engineer152: https://www.paypal.com/paypalme/engineer15\n.. _Donate Werseter: https://paypal.me/werseter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTodoLodo%2Fcod-python-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTodoLodo%2Fcod-python-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTodoLodo%2Fcod-python-api/lists"}