Advanced Exercise Finder

FREEMIUM
By Brian Ong | Updated 2ヶ月前 | Health and Fitness
Popularity

9 / 10

Latency

2,515ms

Service Level

100%

Health Check

N/A

Back to All Discussions

RAPIDAPI GENERATED CODE SUCKS FOR THIS API

Rapid account: Hungry Moose
HungryMoose
1ヶ月前

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);
    }

Join in the discussion - add comment below:

Login / Signup to post new comments