Plugin Directory

Changeset 1714823


Ignore:
Timestamp:
08/17/2017 04:53:46 PM (9 years ago)
Author:
tammomueller
Message:

Adapt to contentqube API changes

Location:
contentqube/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • contentqube/trunk/contentqube.php

    r1651129 r1714823  
    1212        $args['body'] = $postfields;
    1313    }
    14     $response = wp_remote_request(CQFIMP_API_URL . $endpoint, $args);
     14    $response = wp_remote_request($endpoint, $args);
    1515    return $response;
    1616}
    1717
    1818function cqfimp_login($username, $password) {
    19     return cqfimp_api_call("/api/v1/auth/login", "POST", json_encode(array('username' => $username, 'password' => $password)));
     19    return cqfimp_api_call(CQFIMP_LOGIN_URL . "/login", "POST", json_encode(array('username' => $username, 'password' => $password)));
    2020}
    2121
    2222function cqfimp_get_categories($access_token) {
    23     return cqfimp_api_call("/api/v1/categories?show_my_only=true", "GET", "", array("Authorization" => $access_token));
     23    return cqfimp_api_call(CQFIMP_API_URL . "/api/v1/categories?show_my_only=true", "GET", "", array("Authorization" => $access_token));
    2424}
    2525
  • contentqube/trunk/feedimporter-options.php

    r1651129 r1714823  
    4646        $res = json_decode($response['body'], true);
    4747        if ($res['status'] === 'error') {
    48             $text = $res['error']['message'];
     48            $text = $res['error'];
    4949        } else {
    5050            update_option(CQFIMP_USERNAME, $res['account']['username']);
  • contentqube/trunk/feedimporter.php

    r1711583 r1714823  
    22/*
    33  Plugin Name: ContentQube Feed Plugin
    4   Version: 1.0.3
     4  Version: 1.0.4
    55  Author: OneQube Team
    66  Author URI: http://www.oneqube.com/
     
    2424define('CQFIMP_LINK_TO_SOURCE', 'cxxx_link_to_source');
    2525define('CQFIMP_API_URL', 'http://api.contentqube.com');
     26define('CQFIMP_LOGIN_URL', 'http://login.contentqube.com');
    2627define('CQFIMP_ACCESS_TOKEN', 'cxxx_access_token');
    2728define('CQFIMP_USERNAME', 'cxxx_username');
  • contentqube/trunk/readme.txt

    r1711583 r1714823  
    33Tags: rss, ContentQube, atom, feed, import
    44Requires at least: 4.2
    5 Tested up to: 4.7.5
    6 Stable tag: 1.0.2
     5Tested up to: 4.8.1
     6Stable tag: 1.0.4
    77License: AGPLv3 or later
    88License URI: https://www.gnu.org/licenses/agpl-3.0.en.html
     
    3939== Changelog ==
    4040
     41= 1.0.4 =
     42Adapt to contentqube API changes
     43
    4144= 1.0.3 =
    4245Fixed headers in imageproxy
Note: See TracChangeset for help on using the changeset viewer.