Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@datafire/quotes_rest
Advanced tools
Readme
Client library for They Said So Quotes API
npm install --save @datafire/quotes_rest
let quotes_rest = require('@datafire/quotes_rest').create({
"X-TheySaidSo-Api-Secret": ""
});
.then(data => {
console.log(data);
});
They Said So Quotes API offers a complete feature rich REST API access to its quotes platform. This is the documentation for the world famous quotes API. If you are a subscriber and you are trying this from a console add 'X-TheySaidSo-Api-Secret' header and add your api key as the header value. You can test and play with the API right here on this web page. For using the private end points and subscribing to the API please visit https://theysaidso.com/api.
Gets Quote of the Day
. Optional category
param determines the category of returned quote of the day
quotes_rest.qod.get({}, context)
object
string
: QOD Categorystring
: Language of the QOD. The language must be supported in our QOD system.Gets a list of Quote of the Day
Categories.
quotes_rest.qod.categories.get({}, context)
object
string
: Language of the QOD category. The language must be supported in our QOD system.boolean
: Return detailed information of the categories. Note the data format changes between the two values of this switch.Output schema unknown
Gets a list of supported languages for Quote of the Day
.
quotes_rest.qod.languages.get(null, context)
This action has no parameters
Output schema unknown
Delete a qshow.
quotes_rest.qshow.delete({
"id": ""
}, context)
object
string
: Qshow IDOutput schema unknown
Gets a details about a qshow.
quotes_rest.qshow.get({
"id": ""
}, context)
object
string
: Qshow IDOutput schema unknown
Update an existing qshow.
quotes_rest.qshow.patch({
"id": ""
}, context)
object
string
: Qshow IDstring
: Qshow titlestring
: Qshow descriptionarray
: Tags for the qshowOutput schema unknown
Create and add a new qshow to your private collection.
quotes_rest.qshow.put({
"title": ""
}, context)
object
string
: Qshow titlestring
: Qshow descriptionarray
: Tags for the qshowOutput schema unknown
Get the list of Qshows in They Said So platform.
quotes_rest.qshow.list.get({}, context)
object
integer
: Response is paged. This parameter controls where response starts the listing atboolean
: Should include public qshows or not in the listOutput schema unknown
Get the quotes in a given Qshow.
quotes_rest.qshow.quotes.get({
"id": ""
}, context)
object
string
: Qshow IDOutput schema unknown
Add a quote to a given Qshow.
quotes_rest.qshow.quotes.add.post({
"id": "",
"quoteid": ""
}, context)
object
string
: Qshow IDstring
: Quote ID to add the qshow collectionOutput schema unknown
Remove a quote to a given Qshow.
quotes_rest.qshow.quotes.remove.post({
"id": "",
"quoteid": ""
}, context)
object
string
: Qshow IDstring
: Quote ID to remove from the qshow collectionOutput schema unknown
Delete a quote. The user needs to be the owner of the quote to be able to delete it.
quotes_rest.quote.delete({
"id": ""
}, context)
object
string
: Quote IDOutput schema unknown
Gets a Quote
with a given id
.
quotes_rest.quote.get({}, context)
object
string
: Quote IDUpdate a quote
quotes_rest.quote.patch({
"id": ""
}, context)
object
string
: Quote IDstring
: Quotestring
: Quote Authorstring
: Language. If not supplied an auto detection mechanism will be used to detect a language.string
: Comma Separated tagsOutput schema unknown
Add a new quote to your private collection. Same as 'PUT' but added since some clients don't handle PUT well.
quotes_rest.quote.post({
"quote": ""
}, context)
object
string
: Quotestring
: Quote Authorstring
: Comma Separated tagsstring
: Language. If not supplied an auto detection mechanism will be used to detect a language.Output schema unknown
Add a new quote to your private collection.
quotes_rest.quote.put({
"quote": ""
}, context)
object
string
: Quotestring
: Quote Authorstring
: Comma Separated tagsstring
: Language. If not supplied an auto detection mechanism will be used to detect a language.Output schema unknown
Gets a list of popular author names in the system.
quotes_rest.quote.authors.popular.get({}, context)
object
string
: Language. A same author may have quotes in two or more different languages. So for example 'Mahatma Gandhi' may be returned for language "en"(English), and "மஹாத்மா காந்தி" may be returned when the language is "ta" (Tamil).boolean
: Should return detailed author information such as birthday
, death date
, occupation
, description
etc. Only available at certain subscription levels.integer
: Response is paged. This parameter controls where response starts the listing atinteger
: Response is paged. This parameter controls how many is returned in the result. The maximum depends on the subscription level.Output schema unknown
Gets a list of author names in the system.
quotes_rest.quote.authors.search.get({}, context)
object
string
: Text string to search for in author namesstring
: Language. A same author may have quotes in two or more different languages. So for example 'Mahatma Gandhi' may be returned for language "en"(English), and "மஹாத்மா காந்தி" may be returned when the language is "ta" (Tamil).boolean
: Should return detailed author information such as birthday
, death date
, occupation
, description
etc. Only available at certain subscription levels.integer
: Response is paged. This parameter controls where response starts the listing atinteger
: Response is paged. This parameter controls how many is returned in the result. The maximum depends on the subscription level.Output schema unknown
Gets a list of popular Quote
Categories.
quotes_rest.quote.categories.popular.get({}, context)
object
integer
: Response is paged. This parameter controls where response starts the listing atinteger
: Response is paged. This parameter controls how many is returned in the result. The maximum depends on the subscription level.Output schema unknown
Gets a list of Quote
Categories matching the query string.
quotes_rest.quote.categories.search.get({}, context)
object
string
: Text string to search for in the categoriesinteger
: Response is paged. This parameter controls where response starts the listing atinteger
: Response is paged. This parameter controls how many is returned in the result. The maximum depends on the subscription level.Output schema unknown
Remove the disLike for the given Quote as a user of the API Key.
quotes_rest.quote.dislike.delete({
"quote_id": ""
}, context)
object
string
: Quote IDOutput schema unknown
Dislike the given Quote as a user of the API Key. Same as put
but a convenient alias for those clients that don't support put
cleanly.
quotes_rest.quote.dislike.post({
"quote_id": ""
}, context)
object
string
: Quote IDOutput schema unknown
Dislike the given Quote as a user of the API Key. Some clients don't cleanly support PUT
, in such scenarios use the POST
version of this.
quotes_rest.quote.dislike.put({
"quote_id": ""
}, context)
object
string
: Quote IDOutput schema unknown
Delete a quote image. The user needs to be the owner of the quote image to be able to delete it.
quotes_rest.quote.image.delete({
"id": ""
}, context)
object
string
: Quote Image IDOutput schema unknown
Gets a Quote image for a given id. Response can be an image file as a binary or a base64 encoded contents wrapped in json. TODO
quotes_rest.quote.image.get({
"id": ""
}, context)
object
string
: Quote Image idboolean
: Should the response be a direct file download of the image or a base64 encoded image file wrapped in json?Output schema unknown
Create a new quote image for a given quote. Choose background colors/images , choose different font styles and generate a beautiful quote image. Did you just had a feeling of being a god or what?!
quotes_rest.quote.image.put({
"quote_id": ""
}, context)
object
string
: Quote idstring
: Background Image id ( Will override bgcolor if supplied)string
: Background Color(if background image id is not supplied)string
: Font idstring
: Text Colorstring
: Text/font sizestring
: Horizontal text Alignment Valuestring
: Vertical text Alignment Valueinteger
: Image Width(By default this takes the width of the background image)integer
: Image Height(By default this takes the height of the background image)boolean
: Disable They Said So branding (Only available in certain subscription levels. Ignored in other levels)boolean
: Should include a transparent layer between the text and the background image? This helps when the background image is bright and obscures the text.Output schema unknown
Delete a background image file. The user needs to be the owner of the background image to be able to delete it.
quotes_rest.quote.image.background.delete({
"id": ""
}, context)
object
string
: Font IDOutput schema unknown
Add an image for use later as a quote background image.
quotes_rest.quote.image.background.post({
"image": ""
}, context)
object
string
: Image file to add to your collection (png/jpg/gif are supported)string
: Optional comma separated tagsOutput schema unknown
Lists background images in your private collection.
quotes_rest.quote.image.background.list.get({}, context)
object
integer
: Response is paged. This parameter determines where the response should start.Output schema unknown
Searches for a background image with a given tag.
quotes_rest.quote.image.background.search.get({}, context)
object
string
: Tag stringOutput schema unknown
Add a tag to a given Image.
quotes_rest.quote.image.background.tags.add.post({
"id": "",
"tags": ""
}, context)
object
string
: Image IDstring
: Comma Separated tagsOutput schema unknown
Remove a tag from a given Image.
quotes_rest.quote.image.background.tags.remove.post({
"id": "",
"tags": ""
}, context)
object
string
: Image IDstring
: Comma Separated tagsOutput schema unknown
Delete a font file. The user needs to be the owner of the font to be able to delete it.
quotes_rest.quote.image.font.delete({
"id": ""
}, context)
object
string
: Font IDOutput schema unknown
Add a font file for use later in creating a quote image. This is essentially a PUT
but not many clients handle PUT with binary stream i.e. a file, gracefully.
quotes_rest.quote.image.font.post({
"font": ""
}, context)
object
string
: Font file to add to your collection (ttf/otf are supported)string
: Optional comma separated tagsOutput schema unknown
Lists background images in your private collection.
quotes_rest.quote.image.font.list.get({}, context)
object
integer
: Response is paged. This parameter determines where the response should start.Output schema unknown
Searches for a font with a given tag.
quotes_rest.quote.image.font.search.get({}, context)
object
string
: Tag stringOutput schema unknown
Add a tag to a given font.
quotes_rest.quote.image.font.tags.add.post({
"id": "",
"tags": ""
}, context)
object
string
: Font IDstring
: Comma Separated tagsOutput schema unknown
Remove a tag from a given Font.
quotes_rest.quote.image.font.tags.remove.post({
"id": "",
"tags": ""
}, context)
object
string
: Font IDstring
: Comma Separated tagsOutput schema unknown
Gets a Random Quote image. Optional category
param determines the category of quote used in the image. Optional author
param gets the quote image of a given author.
quotes_rest.quote.image.search.get({}, context)
object
string
: Quote Categorystring
: Quote Authorboolean
: Should search private collection. Default searches public image collection.Output schema unknown
Remove the Like for the given Quote as a user of the API Key.
quotes_rest.quote.like.delete({
"quote_id": ""
}, context)
object
string
: Quote IDOutput schema unknown
Like the given Quote as a user of the API Key. Same as PUT
but a convenient alias for those clients that don't support PUT
cleanly.
quotes_rest.quote.like.post({
"quote_id": ""
}, context)
object
string
: Quote IDOutput schema unknown
Like the given Quote as a user of the API Key. Some clients don't cleanly support PUT
, in such scenarios use the POST
version of this.
quotes_rest.quote.like.put({
"quote_id": ""
}, context)
object
string
: Quote IDOutput schema unknown
Get the list of quotes in your private collection.
quotes_rest.quote.list.get({}, context)
object
integer
: Response is paged. This parameter controls where response starts the listing atinteger
: Response is paged. This parameter controls how many is returned in the result.Output schema unknown
Gets a Random Quote
. When you are in a hurry this is what you call to get a random famous quote.
quotes_rest.quote.random.get({}, context)
object
string
: Language of the Quote. The language must be supported in our system.integer
: No of quotes to return. The max limit depends on the subscription level.Search for a Quote
in They Said So platform. Optional category
, author
, minlength
, maxlength
params determines the filters applied while searching for the quote.
quotes_rest.quote.search.get({}, context)
object
string
: Quote Categorystring
: Quote Authorinteger
: Quote minimum Lengthinteger
: Quote maximum Lengthstring
: keyword to search for in the quoteboolean
: Should search private collection? Default searches public collection.string
: Language of the Quote. The language must be supported in our system.integer
: No of quotes to return. The max limit depends on the subscription level.boolean
: Should search only SFW (Safe For Work) quotes?Add a tag to a given Quote.
quotes_rest.quote.tags.add.post({
"id": "",
"tags": ""
}, context)
object
string
: Quote IDstring
: Comma Separated tagsOutput schema unknown
Remove a tag from a given quote.
quotes_rest.quote.tags.remove.post({
"id": "",
"tags": ""
}, context)
object
string
: Quote IDstring
: Comma Separated tagsOutput schema unknown
object
array
: Array of tags/categories.
string
string
: Author name of quote.string
: The Quote.array
: Array of tags/categories.
string
string
: Author name of quote.string
: The Quote.string
: Unique identifier representing a specific quote in theysaidso.com.string
: Image URL that can be used for background to display this quote.integer
: Length of the quote string.string
: Date this quote of the day belongs toarray
: Array of tags/categories.
string
string
: Author name of quote.string
: The Quote.string
: Unique identifier representing a specific quote in theysaidso.com.string
: Image URL that can be used for background to display this quote.integer
: Length of the quote string.object
object
array
: List of quotes
string
: Metadata about this successful callFAQs
DataFire integration for They Said So Quotes API
The npm package @datafire/quotes_rest receives a total of 1 weekly downloads. As such, @datafire/quotes_rest popularity was classified as not popular.
We found that @datafire/quotes_rest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.