Sample Queries

Get images from Instagram and then process with the AWS Rekognition API

rql.query(`
{
    Instagram.getUsersRecentMedia(userId:"self", accessToken:"****") {
        data {
            caption {
                text
            },
            images {
                standard_resolution {
                    url,
                    AWSRekognition.detectLabelsInImage(image:url, apiKey:"****", apiSecret : "****") {
                        Labels {
                            Name,
                            Confidence
                        }
                    }
                }
            }
        }
    }
}
`).then(pipe(JSON.stringify, console.log)).catch((err) => {console.warn(err)});

Get your Facebook friends and their profile pics

rql.query(`
{
    RapidAPI.FacebookGraphAPI.getUsersFriends(user_id : "me", access_token:"****") {
        data {
             name,
             RapidAPI.FacebookGraphAPI.getProfilePicture(profile_id:d, access_token:"****") {
                data {
                    url
                }
             }
        }
    }
}
`).then(pipe(JSON.stringify, console.log)).catch(console.warn);

Get products from Ebay and localize currencies with the Currency Layer API

rql.query(`
{
    RapidAPI.eBay.findItemsByKeyword(sandbox:"false", appId:"****", FreeShippingOnly:"false",MaxPrice:"1000", domainName:"technology", keyword:"iphone") {
        title,
        sellingStatus {
            currentPrice {
                amount,
                currencyId,
                RapidAPI.Currencylayer.getCurrencyConversion(accessKey:"****", fromCurrency:currencyId, amount:amount, toCurrency:"ILS") {
                    result
                }
            }
        }
    }
}
`)

Get restaurants from the Yelp API and couple them with their Uber ride estimates

rql.query(
`{
    RapidAPI.YelpAPI.getAccessToken(appId: appId, appSecret: appSecret) {
        RapidAPI.YelpAPI.getBusinesses(accessToken:access_token, location: "san francisco") {
            businesses {
                name,
                display_phone,
                coordinates {
                    RapidAPI.UberRide.getProductsPrices(accessToken: accessToken, startLatitude: currentLatitude, startLongitude: currentLongitude, endLatitude: latitude, endLongitude: longitude) {
                        prices {
                            display_name,
                            estimate,
                            duration
                        }
                    }
                }
            }
        }
    }
}`,
{
  "currentLatitude": "37.792955",
  "currentLongitude": "-122.404794",
	"appId": "****",
	"appSecret": "****",
	"accessToken": "****"
})