Message Boards Message Boards

0
|
264 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Problem setting up an `APIFunction` to receive web form as JSON

Posted 4 months ago

Created the following API Function and trying to test it before deployment:

APIFunction[
{
"checkin"->"RawJSON",
"user"->"RawJSON",
"secret"->"String"
},
DatabinAdd[Databin["xxxxxxx"],<|
"Timestamp"->FromUnixTime[#checkin[["createdAt"]]],
"CheckinID"->#checkin[["id"]],
"Venue"->#checkin[["venue","name"]],
"Category"->#checkin[["venue","categories",1,"name"]],
"Location"->GeoPosition[{#checkin[["venue","location","lat"]],#checkin[["venue","location","lng"]]}],
"Shout"->#checkin[["shout"]]
|>
&]
,
"HTMLThemed"
]

The resulting item in the datadrop, though, is the top item in the attached list (the datadrop website only returns images, not text):

enter image description here

POSTED BY: Steven Buehler
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract