PHP Client forces me to type a value as integer when attaching a file.



  • Andreas Haugstrup Pedersen

    Function parameters other than $attributes and $options are used to generate a URL, those are all converted to strings for you. The $attributes hash is used to generate JSON and you'll need to provide values of the correct type there for transmission to the API. So it's pretty consistent. :)

    In general you should provide values of the right types at all times and you won't run into problems :)


    Comment actions Permalink
  • Al Bunch

    I didn't realize we'd be using record ID's in mathematical equations, you're right, I better make sure those are integers.

    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk