Created
February 11, 2018 19:40
-
-
Save kutliev/a8499d442a0d5c7d07cde815349e7daa to your computer and use it in GitHub Desktop.
Spot save
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
saveSpot(spot: Spot): Observable<any> { | |
let apiEndPoint = this.settings.ApiEndPoint + "add-object"; | |
let payload = { | |
"write_key": this.settings.ApiWriteKey, | |
"title": spot.title, | |
"type_slug": "spots", | |
"content": spot.content, | |
"metafields": [ | |
{ | |
"key": "type", | |
"title": "Type", | |
"value": spot.type | |
}, | |
{ | |
"key": "floor", | |
"value": spot.floor | |
}, | |
{ | |
"key": "customer", | |
"value": spot.customer | |
} | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment