Fetch Learning Blocks
Learning Blocks
Endpoint
Authentication
Authorization: Bearer <access_token>States Query Example
// Make the GraphQL request
const response = await fetch("https://api.edupaid.2hourlearning.com/functions/v1/graphql", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${accessToken}`
},
body: JSON.stringify({
query: `
query GetStates {
statesCollection {
edges {
node {
id
name
code
}
}
}
}
`
})
})Learning Blocks Query Example
Response Fields
Usage Notes
Last updated