Socket
Book a DemoInstallSign in
Socket

@mentor-medier/search-content-source-block

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mentor-medier/search-content-source-block

Fusion News Theme search API content source block

latest
stable
Source
npmnpm
Version
5.13.3
Version published
Maintainers
1
Created
Source

@wpmedia/search-content-source-block

Fusion News Theme unpublished API content source block. Please provide a 1-2 sentence description of what the block is and what it does.

Acceptance Criteria

  • Add AC relevant to the block

Endpoint

  • Add the endpoint that this content source is hitting

ANS Schema

ANS Fields

  • n/a

Example output

{
  data: [
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
    ANS Object
  ],
  metadata: {
  q: "obama"
    page: "1"
    per_page: 10
    t: "*"
    s: "score"
    timeframe: "*"
    total_hits: 1876
    took: 41
  },
  aggregations: {
    all: 1876
    story: 1865
    image: 0
    video: 11
    gallery: 0
  },
  _id: "7d23d241bfcb79e1891c13f8fae45183c49e1356667429ef2f064cde493335a1"
}

Configurable Params

ParamTypeDescription
query
page

TTL

  • Add the TTL of the content source

Additional Considerations

Requirements

Search Key is required to be set as an environment variable.

For local set this in your .env. file

For all other environments make sure you have updated the necessary files in the environment folder of your feature pack repo.

searchKey=ABCDEF

FAQs

Package last updated on 05 Jul 2021

Did you know?

Socket

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.

Install

Related posts