Comments (5)
I think this is a dup of #7 - would you agree? Thanks
from hubspot-api-php.
I don't fully understand the authors intent but it does not seem to be the same request. To me the issue mentioned in #7 sounds like a static json file which the objects are created from whereas I am talking about the individual json returned from your api which is not accessible when using your client because your client created objects and does not expose the response object which holds the json.
from hubspot-api-php.
@alexanderschnitzler - sorry I misunderstood the request here.
@atanasiuk-hubspot - would calling ObjectSerializer::sanitizeForSerialization() work for converting an Object back to Json?
from hubspot-api-php.
It would be great to have an extra method (like all the async methods) that directly return the response and don't process it any further.
Unfortunately, the client generated with OpenAPI tool, doesn't currently expose the original Json response, so no way to get it directly.
As a workaround the response object can be casted to Json string manually:
$apiResponse = $hubspot->crm()->contacts()->defaultApi()->getPage();
$jsonString = (string)$apiResponse;
And, yes, casting to "string" will use ObjectSerializer::sanitizeForSerialization
method under the hood, as @yfaktor mentioned.
from hubspot-api-php.
closing this because workaround was provided, but please reopen it if it doesn't work, thank you
from hubspot-api-php.
Related Issues (20)
- No properties found to update, please provide at least one. HOT 10
- searchApi: Operator BETWEEN requires a highValue HOT 1
- Incorrect Annotation
- Association between companies 1:many HOT 2
- How to create a deal based on contact using this rep? HOT 1
- Is it possible to associate multiple contacts to one deal? HOT 1
- Something I don't understand HOT 1
- Wrong Id conversation in Assotiations V4 HOT 1
- How to add filters in the blog endpoint HOT 5
- Add documentation for custom behavioral events HOT 7
- GuzzleHttp\Exception\RequestException, TypeError given HOT 5
- How do I filter HubDb table rows using getTableRows() method? There's no option to add the sorting that's mentioned in the reference. HOT 1
- Create or update a group of contacts HOT 3
- Help with update hubdb table row
- Call to undefined function GuzzleHttp\json_encode() HOT 1
- Retrieve an existing contact HOT 1
- Create company is empty HOT 2
- PSR-18 compatibility HOT 1
- Can't setAssociations when creating new Quotes HOT 1
- Invalid value "email" for "field_type", must one of "payment_link_radio" error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubspot-api-php.