在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):euautomation/graphql-client开源软件地址(OpenSource Url):https://github.com/euautomation/graphql-client开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):GraphQL ClientA simple package to consume GraphQL APIs. Installation
UsageCreate an instance of
or
Response classPass in your query, optional variables and headers (eg bearer token),
all()Use errors()Use hasErrors()Use Specific data from the response classFor example purposes, let's assume you want to get a list of all categories and execute this query.
Now in order to fetch some meaningful data from the Response class you can do the following:
You can also set, unset or isset data on the Response class. Other responsesRaw guzzle responsePass in your query, optional variables and headers (eg bearer token),
JsonPass in your query, optional variables and headers (eg bearer token),
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论