import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
page = client.waap.custom_page_sets.list()
page = page.results[0]
print(page.id){
"limit": 123,
"offset": 123,
"count": 123,
"results": [
{
"name": "<string>",
"id": 123,
"domains": [
123
],
"block": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>"
},
"block_csrf": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>"
},
"captcha": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>",
"error": "<string>"
},
"cookie_disabled": {
"enabled": true,
"header": "<string>",
"text": "<string>"
},
"handshake": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>"
},
"javascript_disabled": {
"enabled": true,
"header": "<string>",
"text": "<string>"
}
}
]
}Retrieve a list of custom page sets available for use
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
page = client.waap.custom_page_sets.list()
page = page.results[0]
print(page.id){
"limit": 123,
"offset": 123,
"count": 123,
"results": [
{
"name": "<string>",
"id": 123,
"domains": [
123
],
"block": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>"
},
"block_csrf": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>"
},
"captcha": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>",
"error": "<string>"
},
"cookie_disabled": {
"enabled": true,
"header": "<string>",
"text": "<string>"
},
"handshake": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>"
},
"javascript_disabled": {
"enabled": true,
"header": "<string>",
"text": "<string>"
}
}
]
}API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Sort the response by given field.
name, -name, id, -id Number of items to return
0 <= x <= 100Number of items to skip
0 <= x <= 100000Filter page sets based on their name. Supports '*' as a wildcard character
Filter page sets based on their IDs
Successful Response
Number of items requested in the response
Items response offset used
Number of items contain in the response
List of items returned in the response following given criteria
Show child attributes
Name of the custom page set
1 - 50The ID of the custom page set
List of domain IDs that are associated with this page set
The domain ID
Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50The text to display in the body of the custom page
20 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50The text to display in the body of the custom page
20 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50The text to display in the body of the custom page
20 - 400Error message
10 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
The text to display in the header of the custom page
3 - 62The text to display in the body of the custom page
20 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50Show child attributes
Indicates whether the custom custom page is active or inactive
The text to display in the header of the custom page
3 - 62The text to display in the body of the custom page
20 - 400Was this page helpful?