Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GIPHY

Hierarchy

Index

Constructors

  • new GIPHY(apiKey: string): GIPHY

Properties

apiKey: string
color: string = "#333"
fetchSettings?: RequestInit
getButton: (image: GIPHYResult) => string

Type declaration

    • (image: GIPHYResult): string
    • Parameters

      • image: GIPHYResult

      Returns string

getPopularResults: (response: any) => GIPHYResult[]

Type declaration

    • (response: any): GIPHYResult[]
    • Parameters

      • response: any

      Returns GIPHYResult[]

getSearchResults: (response: any) => GIPHYResult[]

Type declaration

    • (response: any): GIPHYResult[]
    • Parameters

      • response: any

      Returns GIPHYResult[]

icon: string = ""
invisible: boolean = false
loading: boolean = false
name: string = ""
noRecolor: boolean = false
popularEndpoint: string
poweredByUrl: string
results: GIPHYResult[] = []
searchEndpoint: (apiKey: string, query: string) => string

Type declaration

    • (apiKey: string, query: string): string
    • Parameters

      • apiKey: string
      • query: string

      Returns string

stop: () => void = ...

Type declaration

    • (): void
    • Returns void

supports: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

type: string = "service"

Methods

Generated using TypeDoc