Skip to content

Change methods that accept a hubapi.ResourceLink to accept a string instead #54

@brekelj1

Description

@brekelj1

I have a use-case where I have a string that is the URL to pass to ListProjectVersionComponents. But the function ListProjectVersionComponents requires a ResourceLink object, and it only uses the Href field.

It is better to change API-call functions that only use the Href field of a parameter of type ResourceLink to accept a string instead.

Existing callers that rely on a ResourceLink type of parameters can easily add a .Href to their code when upgrading to the new client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions