Skip to content

Instantly share code, notes, and snippets.

@AugustoPedraza
Created December 4, 2019 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AugustoPedraza/5a7fc88e1af9c843451ecb0a32ac7247 to your computer and use it in GitHub Desktop.
Save AugustoPedraza/5a7fc88e1af9c843451ecb0a32ac7247 to your computer and use it in GitHub Desktop.
/////////////////
// The query
/////////////////
query {
optInForm(shortId: "an id") {
account {
avatarUrl
isVerified
name {
values(lang: ENGLISH)
}
}
questionsPlaceholder{
values(lang: ENGLISH)
}
questionsPositionOnRow
agreementText {
values(lang: ENGLISH)
}
subtitle {
values(lang: ENGLISH)
}
afterSubmission {
values(lang: ENGLISH)
}
avatarMedia {
extensionType
sourceUuid
uri
}
coverMedia {
extensionType
sourceUuid
uri
}
instructionsText {
values(lang: ENGLISH)
}
title {
values(lang: ENGLISH)
}
segmentationQuestions(first: 10) {
edges {
node {
position
textContent {
values(lang: ENGLISH)
}
}
}
}
formFields(first: 10) {
edges {
node {
displayName {
values(lang: ENGLISH)
}
memberAttr
placeholder {
values(lang: ENGLISH)
}
positionOnCol
positionOnRow
isRequired
specialFormat
}
}
}
}
}
/////////////////
// The result
/////////////////
{
"data": {
"optInForm": {
"account": {
"avatarUrl": "https://cdn.filestackcontent.com/KCfpYP8sTWqIRU6DRCvf",
"isVerified": "true",
"name": {
"values": "{\"en\":\"Brian White\"}"
}
},
"afterSubmission": {
"values": "{\"en\":\"Thanks for joining\"}"
},
"agreementText": {
"values": "{\"en\":\"Clicking the SUBMIT button you agree to receive text-messages from me. You can opt-out at anytime by just texting STOP. Your carrier may charge you normal SMS or data rates.\"}"
},
"avatarMedia": null,
"coverMedia": {
"extensionType": ".mp4",
"sourceUuid": "xxxx",
"uri": "dummy.html"
},
"formFields": {
"edges": [
{
"node": {
"displayName": null,
"isRequired": true,
"memberAttr": "first_name",
"placeholder": {
"values": "{\"en\":\"First Name\"}"
},
"positionOnCol": 0,
"positionOnRow": 0,
"specialFormat": null
}
},
{
"node": {
"displayName": null,
"isRequired": true,
"memberAttr": "last_name",
"placeholder": {
"values": "{\"en\":\"Last Name\"}"
},
"positionOnCol": 1,
"positionOnRow": 0,
"specialFormat": null
}
},
{
"node": {
"displayName": null,
"isRequired": true,
"memberAttr": "zip_code",
"placeholder": {
"values": "{\"en\":\"Zip/Postal code\"}"
},
"positionOnCol": 0,
"positionOnRow": 1,
"specialFormat": null
}
},
{
"node": {
"displayName": null,
"isRequired": true,
"memberAttr": "phone_number",
"placeholder": {
"values": "{\"en\":\"Mobile # (w/country code)\"}"
},
"positionOnCol": 0,
"positionOnRow": 3,
"specialFormat": "PHONE_NUMBER"
}
},
{
"node": null
}
]
},
"instructionsText": {
"values": "{\"en\":\"Please take a few seconds to add your info to my phone book below. I'll text you right back.\"}"
},
"questionsPlaceholder": null,
"questionsPositionOnRow": 2,
"segmentationQuestions": {
"edges": [
{
"node": {
"position": 0,
"textContent": {
"values": "{\"en\":\"Keep up-to-date on all things Brian White!\"}"
}
}
},
{
"node": {
"position": 1,
"textContent": {
"values": "{\"en\":\"I wanna learn about becoming an actor/actress\"}"
}
}
},
{
"node": {
"position": 2,
"textContent": {
"values": "{\"en\":\"I wanna get involved with your charity & community work\"}"
}
}
},
{
"node": {
"position": 3,
"textContent": {
"values": "{\"en\":\"I’m interested in casting or booking you\"}"
}
}
},
{
"node": {
"position": 4,
"textContent": {
"values": "{\"en\":\"I’m networking & looking for your advice\"}"
}
}
}
]
},
"subtitle": {
"values": "{\"en\":\"Actor, Producer & Philanthropist\"}"
},
"title": {
"values": "{\"en\":\"Brian White\"}"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment