Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
9a3d2e4f
Commit
9a3d2e4f
authored
4 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[enh]
#59
enhance GVA request_data_graphql.py example
parent
fe6ad579
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!119
Release 0.61.0
,
!90
Add GraphQL GVA API support
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/request_data_graphql.py
+2
-2
2 additions, 2 deletions
examples/request_data_graphql.py
with
2 additions
and
2 deletions
examples/request_graphql.py
→
examples/request_
data_
graphql.py
+
2
−
2
View file @
9a3d2e4f
...
@@ -11,14 +11,14 @@ from graphql.error import GraphQLSyntaxError
...
@@ -11,14 +11,14 @@ from graphql.error import GraphQLSyntaxError
# You can either use a complete defined endpoint : [NAME_OF_THE_API] [DOMAIN] [IPv4] [IPv6] [PORT]
# You can either use a complete defined endpoint : [NAME_OF_THE_API] [DOMAIN] [IPv4] [IPv6] [PORT]
# or the simple definition : [NAME_OF_THE_API] [DOMAIN] [PORT]
# or the simple definition : [NAME_OF_THE_API] [DOMAIN] [PORT]
# Here we use the secure BASIC_MERKLED_API (BMAS) for standard http over ssl requests
# Here we use the secure BASIC_MERKLED_API (BMAS) for standard http over ssl requests
SWAPI
_ENDPOINT
=
"
BMAS g1.librelois.fr 443 gva
"
GVA
_ENDPOINT
=
"
BMAS g1.librelois.fr 443 gva
"
################################################
################################################
async
def
main
():
async
def
main
():
client
=
Client
(
SWAPI
_ENDPOINT
)
client
=
Client
(
GVA
_ENDPOINT
)
# get query to get schema from api
# get query to get schema from api
query
=
get_introspection_query
(
False
)
query
=
get_introspection_query
(
False
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment