Good day! (I'm being very prolific in my questions...
# singer-tap-development
s
Good day! (I'm being very prolific in my questions this week, I know) I'm trying to make an api call to get all the properties for my tap (so that I can then create a custom schema). But when I run this code:
Copy code
class DealsStream(HubspotStream):
    name = "deals"
    path = "/crm/v3/objects/deals"
    primary_keys = ["id"]
    replication_key = "updatedAt"
    records_jsonpath = "$.results[*]"
    next_page_token_jsonpath = "$.paging.next.after"

    def schema(self) -> dict:
        """Dynamically detect the json schema for the stream.
        This is evaluated prior to any records being retrieved.
        """
        properties = requests.get(self.url_base+f"/crm/v3/properties/{self.name}", headers=self.http_headers).json()
I get this error:
Copy code
File "/home/stephane/Documents/projects/meltano-projects/taps/tap-hubspot/.venv/lib/python3.9/site-packages/singer/schema.py", line 98, in from_dict
    properties = data.get('properties')
AttributeError: 'function' object has no attribute 'get'
Have you ever experienced this?