Plugin Directory

Changeset 2460595


Ignore:
Timestamp:
01/21/2021 06:28:49 PM (5 years ago)
Author:
datacake
Message:

Building 1.1.0

Location:
datacake-core
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • datacake-core/tags/1.1.0/README.txt

    r2458399 r2460595  
    66Tested up to: 5.5.3
    77Requires PHP: 7.2
    8 Stable tag: 1.0.1
     8Stable tag: 1.1.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • datacake-core/tags/1.1.0/src/Wda/BaseApi.php

    r2458314 r2460595  
    1919        $this->client = new JsonApiClient(Client::createWithConfig([]));
    2020
    21         $this->config = json_decode(get_option('datacake_api'));
     21        $this->config = get_option('datacake_api');
     22       
    2223        // Instantiate an empty PSR-7 request, note that the default HTTP method must be provided
    2324        $this->request = new Request('GET', '');
     
    2829            ->setProtocolVersion("1.1")
    2930            ->setMethod("GET")
    30             ->setUri($this->config->url.$this->version.$this->baseUrl)
     31            ->setUri($this->config['url'].$this->version.$this->baseUrl)
    3132            ->setHeader("Accept-Charset", "utf-8");
    3233    }
    3334   
    3435    public function setUrl($url = ''){
    35         $this->requestBuilder->setUri($this->config->url.$this->version.$url);
     36        $this->requestBuilder->setUri($this->config['url'].$this->version.$url);
    3637    }
    3738    public function setJsonApiFields($fields){
  • datacake-core/trunk/README.txt

    r2458399 r2460595  
    66Tested up to: 5.5.3
    77Requires PHP: 7.2
    8 Stable tag: 1.0.1
     8Stable tag: 1.1.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • datacake-core/trunk/src/Wda/BaseApi.php

    r2458314 r2460595  
    1919        $this->client = new JsonApiClient(Client::createWithConfig([]));
    2020
    21         $this->config = json_decode(get_option('datacake_api'));
     21        $this->config = get_option('datacake_api');
     22       
    2223        // Instantiate an empty PSR-7 request, note that the default HTTP method must be provided
    2324        $this->request = new Request('GET', '');
     
    2829            ->setProtocolVersion("1.1")
    2930            ->setMethod("GET")
    30             ->setUri($this->config->url.$this->version.$this->baseUrl)
     31            ->setUri($this->config['url'].$this->version.$this->baseUrl)
    3132            ->setHeader("Accept-Charset", "utf-8");
    3233    }
    3334   
    3435    public function setUrl($url = ''){
    35         $this->requestBuilder->setUri($this->config->url.$this->version.$url);
     36        $this->requestBuilder->setUri($this->config['url'].$this->version.$url);
    3637    }
    3738    public function setJsonApiFields($fields){
Note: See TracChangeset for help on using the changeset viewer.