UserFavorites

From TheGamesDB Wiki
Jump to: navigation, search

The UserFavorites API call allows you get, set and remove a user game favorite.

Always returns a list of the current favorite game id's.


Parameters:

accountid (int): users unique account api id. HowToGetMyApiId?

type (string add|remove) (optional): sets the action (add or remove) for the request.

gameid (int) (optional): required if type is 'set'. The game id to preform the type on.


Example Request:

http://thegamesdb.net/api/User_Favorites.php?accountid=58536D31278176DA&type=add&gameid=2


Example Result:

<?xml version="1.0" encoding="UTF-8" ?>
<Favorites>
    <Game>1</Game>
    <Game>2</Game>
</Favorites>
Personal tools
Namespaces

Variants
Actions
Navigation
Contents
Toolbox