Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Vlad Bukhanets
/
immoscout24-api-php
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Merge Requests
0
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
68508bef
authored
2020-08-10 09:36:33 +0200
by
fehrlich
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added unauthorized exeption
1 parent
31d1c521
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/ImmoScoutAPI.php
src/ImmoScoutAPI.php
View file @
68508be
...
...
@@ -386,6 +386,9 @@ abstract class ImmoScoutAPI extends GuzzleClient
];
if
(
!
empty
(
$res
->
getBody
()))
{
try
{
if
(
$res
->
getStatusCode
()
==
"401"
)
{
throw
new
AuthException
(
"Immoscout24-API: "
.
$res
->
getReasonPhrase
());
}
$json
=
json_decode
(
$res
->
getBody
(),
true
);
}
catch
(
InvalidArgumentException
$ex
)
{
$json
=
[];
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment