Changeset 1714823
- Timestamp:
- 08/17/2017 04:53:46 PM (9 years ago)
- Location:
- contentqube/trunk
- Files:
-
- 4 edited
-
contentqube.php (modified) (1 diff)
-
feedimporter-options.php (modified) (1 diff)
-
feedimporter.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contentqube/trunk/contentqube.php
r1651129 r1714823 12 12 $args['body'] = $postfields; 13 13 } 14 $response = wp_remote_request( CQFIMP_API_URL .$endpoint, $args);14 $response = wp_remote_request($endpoint, $args); 15 15 return $response; 16 16 } 17 17 18 18 function 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))); 20 20 } 21 21 22 22 function 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)); 24 24 } 25 25 -
contentqube/trunk/feedimporter-options.php
r1651129 r1714823 46 46 $res = json_decode($response['body'], true); 47 47 if ($res['status'] === 'error') { 48 $text = $res['error'] ['message'];48 $text = $res['error']; 49 49 } else { 50 50 update_option(CQFIMP_USERNAME, $res['account']['username']); -
contentqube/trunk/feedimporter.php
r1711583 r1714823 2 2 /* 3 3 Plugin Name: ContentQube Feed Plugin 4 Version: 1.0. 34 Version: 1.0.4 5 5 Author: OneQube Team 6 6 Author URI: http://www.oneqube.com/ … … 24 24 define('CQFIMP_LINK_TO_SOURCE', 'cxxx_link_to_source'); 25 25 define('CQFIMP_API_URL', 'http://api.contentqube.com'); 26 define('CQFIMP_LOGIN_URL', 'http://login.contentqube.com'); 26 27 define('CQFIMP_ACCESS_TOKEN', 'cxxx_access_token'); 27 28 define('CQFIMP_USERNAME', 'cxxx_username'); -
contentqube/trunk/readme.txt
r1711583 r1714823 3 3 Tags: rss, ContentQube, atom, feed, import 4 4 Requires at least: 4.2 5 Tested up to: 4. 7.56 Stable tag: 1.0. 25 Tested up to: 4.8.1 6 Stable tag: 1.0.4 7 7 License: AGPLv3 or later 8 8 License URI: https://www.gnu.org/licenses/agpl-3.0.en.html … … 39 39 == Changelog == 40 40 41 = 1.0.4 = 42 Adapt to contentqube API changes 43 41 44 = 1.0.3 = 42 45 Fixed headers in imageproxy
Note: See TracChangeset
for help on using the changeset viewer.