Skip to main content

UserInterestApi

All URIs are relative to http://localhost

MethodHTTP requestDescription
deleteUserInterestDELETE /user_interests/{emoji_id}Destroys the user interest preventing this Emoji ID's notification emails from being sent for this user
getInterestedUsersGET /user_interestsReturns a paginated list of user interest records associated with the user
getUserInterestForYatGET /user_interests/{emoji_id}Given an EmojiId returns information about the user interest if a record exists for this user
registerInterestPOST /user_interestsCreate new interest in emoji to be notified when available

deleteUserInterest#

/*** @returns UserInterest**/async function deleteUserInterest(emojiId: String)

Destroys the user interest preventing this Emoji ID's notification emails from being sent for this user

Notes:#

NOTE: user should have scope UserInterestDelete

Example#

const yat = require('yatjs');const api = new yat.YatJs();
await api.login("[email protected]", "your_password");
let emojiId = "emojiId_example"; // String // populate emojiId...
try {  let res = await api.userInterest().deleteUserInterest(emojiId);  // res is of type UserInterest  console.log('API called successfully. Result: ', res);} catch (error) {  console.error(error);}

Parameters#

NameTypeDescriptionNotes
emojiIdString

Return type#

UserInterest

Authorization#

apiKey

HTTP request headers#

  • Content-Type: Not defined
  • Accept: /

getInterestedUsers#

/*** @returns ListOfUserInterest**/async function getInterestedUsers(opts)

Returns a paginated list of user interest records associated with the user

Notes:#

NOTE: user should have scope UserInterestRead

Example#

const yat = require('yatjs');const api = new yat.YatJs();
await api.login("[email protected]", "your_password");
let opts = {  'dir': "dir_example", // String |   'limit': 56, // Number |   'page': 56, // Number |   'sort': "sort_example" // String | };try {  let res = await api.userInterest().getInterestedUsers(opts);  // res is of type ListOfUserInterest  console.log('API called successfully. Result: ', res);} catch (error) {  console.error(error);}

Parameters#

NameTypeDescriptionNotes
dirString[optional]
limitNumber[optional]
pageNumber[optional]
sortString[optional]

Return type#

ListOfUserInterest

Authorization#

apiKey

HTTP request headers#

  • Content-Type: Not defined
  • Accept: /

getUserInterestForYat#

/*** @returns UserInterest**/async function getUserInterestForYat(emojiId: String)

Given an EmojiId returns information about the user interest if a record exists for this user

Notes:#

NOTE: user should have scope UserInterestRead

Example#

const yat = require('yatjs');const api = new yat.YatJs();
await api.login("[email protected]", "your_password");
let emojiId = "emojiId_example"; // String // populate emojiId...
try {  let res = await api.userInterest().getUserInterestForYat(emojiId);  // res is of type UserInterest  console.log('API called successfully. Result: ', res);} catch (error) {  console.error(error);}

Parameters#

NameTypeDescriptionNotes
emojiIdString

Return type#

UserInterest

Authorization#

apiKey

HTTP request headers#

  • Content-Type: Not defined
  • Accept: /

registerInterest#

/*** @returns UserInterest**/async function registerInterest(body: NewUserInterestParameters)

Create new interest in emoji to be notified when available

Notes:#

NOTE: user should have scope UserInterestWrite

Example#

const yat = require('yatjs');const api = new yat.YatJs();
await api.login("[email protected]", "your_password");
let body = new YatJs.NewUserInterestParameters(); // NewUserInterestParameters // populate body...
try {  let res = await api.userInterest().registerInterest(body);  // res is of type UserInterest  console.log('API called successfully. Result: ', res);} catch (error) {  console.error(error);}

Parameters#

NameTypeDescriptionNotes
bodyNewUserInterestParameters

Return type#

UserInterest

Authorization#

apiKey

HTTP request headers#

  • Content-Type: Not defined
  • Accept: /