Discussions
Screenpop API error
7 months ago by Daniel Cheramie
I am making the following request to a sandbox account:
POST <https://dialpadbeta.com/api/v2/users/id/screenpop?id=631#############>
Authorization: Bearer acp#########
{"screen_pop_uri":"<https://www.google.com/search?q=test"}>
(The ### in the URL are all numbers)
The response I get is:
{
"error": {
"code": 400,
"errors": [
{
"domain": "global",
"message": "Error parsing ProtoRPC request (Unable to parse request content: Expected type (<type 'int'>, <type 'long'>) for field id, found id (type <class 'str'>))",
"reason": "badRequest"
}
],
"message": "Error parsing ProtoRPC request (Unable to parse request content: Expected type (\<type 'int'>, \<type 'long'>) for field id, found id (type \<class 'str'>))"
}
}
I'm not understanding what I'm missing about making this request. The error seems to indicate the id parameter is non-numeric, but it definitely is. What am I missing?