Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for real estate projects #45

Open
No5251 opened this issue Apr 11, 2017 · 7 comments
Open

Add support for real estate projects #45

No5251 opened this issue Apr 11, 2017 · 7 comments

Comments

@No5251
Copy link

No5251 commented Apr 11, 2017

Please add support for the elements "realEstateProject" and "realEstateProjectEntry":
https://api.immobilienscout24.de/our-apis/import-export/realestateproject.html

@chris-blues
Copy link

I second that request.

It seems, in the last 4 years this didn't happen. Are there any known workarounds? Or do you simply generate the XML "by hand"?

Thanks and take care everybody!

@chris-blues
Copy link

chris-blues commented Feb 10, 2021

Working on a possible update. Need your insights! What do you people think about this? Would it even work like this?

chris-blues@75e0641

@chris-blues
Copy link

Seems to work, somewhat...

Request: https://rest.immobilienscout24.de/restapi/api/offer/v1.0/user/me/realestateproject/97450/realestateprojectentry

<realestateproject:realEstateProjectEntries xmlns:realestateproject="http://rest.immobilienscout24.de/schema/offer/realestateproject/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ns4="http://rest.immobilienscout24.de/schema/platform/gis/1.0">
   <realEstateProjectEntry>
      <realEstateExternalId>71461</realEstateExternalId>
   </realEstateProjectEntry>
</realestateproject:realEstateProjectEntries>

Response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<common:messages xmlns:common="http://rest.immobilienscout24.de/schema/common/1.0" xmlns:gis="http://rest.immobilienscout24.de/schema/platform/gis/1.0">
    <message>
        <messageCode>ERROR_COMMON_ACCESS_DENIED</messageCode>
        <message>Internal Authorization Error</message>
    </message>
</common:messages>

:-/ any help appreciated!

@chris-blues
Copy link

chris-blues commented Mar 4, 2021

The error was about missing permissions on Immoscout's side. Now, this code seems to work:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:realEstateProjectEntries xmlns:ns2="http://rest.immobilienscout24.de/schema/offer/realestateproject/1.0" xmlns:ns3="http://www.w3.org/1999/xlink">
    <realEstateProjectEntry>
        <messageCode>MESSAGE_RESOURCE_CREATED</messageCode>
        <message>real estate with external id 73207 was added to project 97450</message>
        <realEstateExternalId>73207</realEstateExternalId>
    </realEstateProjectEntry>
</ns2:realEstateProjectEntries>

The only thing missing is a good response on the side of Immocaster. Now it returns (bool) false Though the response looks like a success. Any comments on that?

@chris-blues
Copy link

chris-blues commented Mar 4, 2021

Opened a pull request here: #54

Here: #55

@chris-blues
Copy link

It's finally done! Now it only needs to be merged...

1 similar comment
@chris-blues
Copy link

It's finally done! Now it only needs to be merged...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants