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

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות