POST Event with Results not working
-
Hey ??
I am trying to POST the JSON bellow to the Event API in order to create a new event. Its Sportspress Soccer. The event is created but there are no Results (Goals) in the event.
Do i send a wrong formatted result value?$json = ‘{“slug”: “bluebirds-vs-eagles111”,
“status”: “publish”,
“type”: “sp_event”,
“link”: “https://****/soccer/event/bluebirds-vs-eagles/”,
“title”: “TEST”,
“content”: “Test Content”,
“excerpt”:”Text Excerpt”,
“leagues”: [
20
],
“seasons”: [
23
],
“venues”: [
25
],
“teams”: [
33,
34
],“results”:{
“33”:{
“first”:”10″,
“second”:”0″,
“total”:”10″,
“outcome”:”10″
},
“34”:{
“first”:”6″,
“second”:”0″,
“total”:”10″,
“outcome”:”10″
},“0”: {
“goals”: “Goals”
}
},“main_results”: [
“10”,
“10”
],
“day”: “”,
“minutes”: “90”,
“players”: [
0,
36,
37,
0,
40,
41
],“author”: 1,
“featured_media”: 0
}’
- The topic ‘POST Event with Results not working’ is closed to new replies.