Advanced Exercise Finder

फ्रीमियम
द्वारा Brian Ong | अपडेट किया गया 2달 전 | Health and Fitness
लोकप्रियता

8.2 / 10

लेटेंसी

3,086ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

RAPIDAPI GENERATED CODE SUCKS FOR THIS API

Rapid account: Hungry Moose
HungryMoose
2달 전

DON’T USE GENERATED RAPIDAPI CODE

USE SOMETHING LIKE THIS:

const query = query { exercises( exerciseQuery: {force: "pull"} ) { name } }

    const url = 'https://advanced-exercise-finder.p.rapidapi.com/'
    const options = {
        method: 'POST',
        headers: {
            'x-rapidapi-key': 'api-key',
	        'x-rapidapi-host': 'advanced-exercise-finder.p.rapidapi.com',
	        'Content-Type': 'application/json'
        },
        body: JSON.stringify({query:query})
    }
    try {
        const response = await fetch(url, options);
        const result = await response.text();
        console.log(result);
    } catch (error) {
        console.error(error);
    }

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें