Bing News Search

ÜCRETSİZ PREMIUM
Taraf Microsoft Azure | Güncelleyen 2 месяца назад | News, Media
Popülerlik

0.4 / 10

Gecikme

116ms

Hizmet Düzeyi

100%

Health Check

N/A

Tüm Tartışmalara Dön

Why Bing News API is giving 401 error

Rapid account: Mdakram 09
mdakram09
год назад

Why Bing News API is giving 401 error?. Please fix this ASAP as my site is stuck here

Rapid account: Haykoqweqwe 1
haykoqweqwe1 Commented год назад

import {createApi, fetchBaseQuery} from ‘@reduxjs/toolkit/query/react’

const baseUrl = ‘https://newsapi.org’;

const createRequest = (url)=>({url})

export const cryptoNewsApi = createApi({
reducerPath: ‘cryptoNewsApi’,
baseQuery: fetchBaseQuery({ baseUrl }),
endpoints: (builder)=>({
getCryptoNews: builder.query({
query: ({newsCategory, count})=>createRequest(/v2/everything?q=${newsCategory}&publishedAt&apiKey=57082477bdb745adb73589067d2305d9&count=${count}),
})
})
});

export const { useGetCryptoNewsQuery } = cryptoNewsApi;
Rapid account: Haykoqweqwe 1
haykoqweqwe1 Commented год назад

import {createApi, fetchBaseQuery} from ‘@reduxjs/toolkit/query/react’

const baseUrl = ‘https://newsapi.org’;

const createRequest = (url)=>({url})

export const cryptoNewsApi = createApi({
reducerPath: ‘cryptoNewsApi’,
baseQuery: fetchBaseQuery({ baseUrl }),
endpoints: (builder)=>({
getCryptoNews: builder.query({
query: ({newsCategory, count})=>createRequest(/v2/everything?q=${newsCategory}&publishedAt&apiKey=57082477bdb745adb73589067d2305d9&count=${count}),
})
})
});

export const { useGetCryptoNewsQuery } = cryptoNewsApi;

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun