<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_bookmark(self, url, favorite=False, archive=False, allow_duplicates=True):
 """ Adds given bookmark to the authenticated user. :param url: URL of the article to bookmark :param favorite: whether or not the bookmark should be favorited :param archive: whether or not the bookmark should be archived :param allow_duplicates: whether or not to allow duplicate bookmarks to be created for a given url """

        rdb_url = self._generate_url('bookmarks')
        params = {
            "url": url,
            "favorite": int(favorite),
            "archive": int(archive),
            "allow_duplicates": int(allow_duplicates)
        }
        return self.post(rdb_url, params)