Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Set Venue for Event using Graph API

When I create events, I've tried adding venue details similar to what it looks like below, but the venue information seems to be ignored. (I'm posting it to /me/events)

The event otherwise gets created successfully. How can I set the venue during the creation process? Do I need to create it afterwards instead? Thanks

{
  "owner": {
  "name": "David R",
  "id": "234234"
},
"name": "sdf",
"description": "tes",
"start_time": "2011-09-11T00:00:00",
"end_time": "2011-09-11T03:00:00",
"location": "sadf",
"venue": {
"street": "weber",
"city": "Waterloo",
"state": "Ontario",
"country": "Canada"
},
"privacy": "SECRET",
"updated_time": "2011-09-10T23:22:23+0000",
"type": "event"
}
like image 861
David Avatar asked Sep 10 '11 23:09

David


People also ask

How do I create an event in a graph API?

Request. The following example creates an event in a specific calendar and assigns the event an optional transactionId value. GraphServiceClient graphClient = new GraphServiceClient( authProvider ); var @event = new Event { Subject = "Let's go for lunch", Body = new ItemBody { ContentType = BodyType.

Is the Microsoft Graph API free?

As part of this application we will also be listing users, messages and attachments. We want to confirm that there is no cost associated with using the Graph API for mail (messages).

What is Graph API used for?

The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.

What is Graph event?

Event Graphs are a way of graphically representing discrete-event simulation models. They have a minimalist design, with a single type of node and two types of edges with up to three options. Despite their simplicity, Event Graphs are extremely powerful.


1 Answers

get rid of '"venue"{}' and just use city state country etc..

{'name':"neverland",
'city':"los angeles",
'description':"ontherparty",
'location':"sames",
'start_time': "9-12-2011 12:45"
}
like image 197
normeus Avatar answered Oct 12 '22 04:10

normeus