-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [+] Pre Curl Release * [*] Always use curl (curl/curl package) * [-] removed LongreadsHelper class * [*] `getStoredAll()` always return array * [*] `getStoredByID()` always return array * [*] `fetchPagesList()` have optional argument: projects list * [*] `fetchPagesList()` return list of available pages * [*] `getPageFullExport()` always return stdClass like structure: longread or LongreadError instance
- Loading branch information
1 parent
96e2507
commit e6fedb5
Showing
6 changed files
with
252 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace AJUR\FSNews; | ||
|
||
class LongreadError | ||
{ | ||
public string $status = 'ERROR'; | ||
|
||
public string $result = ''; | ||
|
||
public bool $error = true; | ||
|
||
public string $error_message = ''; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
public int $error_code; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public string $url; | ||
|
||
public function __construct($error_message = '', $error_code = 0, $url = '') | ||
{ | ||
$this->error_message = $error_message; | ||
$this->error_code = $error_code; | ||
$this->url = $url; | ||
} | ||
} |
Oops, something went wrong.