Changeset 2460595
- Timestamp:
- 01/21/2021 06:28:49 PM (5 years ago)
- Location:
- datacake-core
- Files:
-
- 4 edited
- 1 copied
-
tags/1.1.0 (copied) (copied from datacake-core/trunk)
-
tags/1.1.0/README.txt (modified) (1 diff)
-
tags/1.1.0/src/Wda/BaseApi.php (modified) (2 diffs)
-
trunk/README.txt (modified) (1 diff)
-
trunk/src/Wda/BaseApi.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
datacake-core/tags/1.1.0/README.txt
r2458399 r2460595 6 6 Tested up to: 5.5.3 7 7 Requires PHP: 7.2 8 Stable tag: 1. 0.18 Stable tag: 1.1.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
datacake-core/tags/1.1.0/src/Wda/BaseApi.php
r2458314 r2460595 19 19 $this->client = new JsonApiClient(Client::createWithConfig([])); 20 20 21 $this->config = json_decode(get_option('datacake_api')); 21 $this->config = get_option('datacake_api'); 22 22 23 // Instantiate an empty PSR-7 request, note that the default HTTP method must be provided 23 24 $this->request = new Request('GET', ''); … … 28 29 ->setProtocolVersion("1.1") 29 30 ->setMethod("GET") 30 ->setUri($this->config ->url.$this->version.$this->baseUrl)31 ->setUri($this->config['url'].$this->version.$this->baseUrl) 31 32 ->setHeader("Accept-Charset", "utf-8"); 32 33 } 33 34 34 35 public function setUrl($url = ''){ 35 $this->requestBuilder->setUri($this->config ->url.$this->version.$url);36 $this->requestBuilder->setUri($this->config['url'].$this->version.$url); 36 37 } 37 38 public function setJsonApiFields($fields){ -
datacake-core/trunk/README.txt
r2458399 r2460595 6 6 Tested up to: 5.5.3 7 7 Requires PHP: 7.2 8 Stable tag: 1. 0.18 Stable tag: 1.1.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
datacake-core/trunk/src/Wda/BaseApi.php
r2458314 r2460595 19 19 $this->client = new JsonApiClient(Client::createWithConfig([])); 20 20 21 $this->config = json_decode(get_option('datacake_api')); 21 $this->config = get_option('datacake_api'); 22 22 23 // Instantiate an empty PSR-7 request, note that the default HTTP method must be provided 23 24 $this->request = new Request('GET', ''); … … 28 29 ->setProtocolVersion("1.1") 29 30 ->setMethod("GET") 30 ->setUri($this->config ->url.$this->version.$this->baseUrl)31 ->setUri($this->config['url'].$this->version.$this->baseUrl) 31 32 ->setHeader("Accept-Charset", "utf-8"); 32 33 } 33 34 34 35 public function setUrl($url = ''){ 35 $this->requestBuilder->setUri($this->config ->url.$this->version.$url);36 $this->requestBuilder->setUri($this->config['url'].$this->version.$url); 36 37 } 37 38 public function setJsonApiFields($fields){
Note: See TracChangeset
for help on using the changeset viewer.