Skip to content

Instantly share code, notes, and snippets.

@yavuzyurtbegendi
Last active October 12, 2016 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yavuzyurtbegendi/fd25125c69be3f5c8a83f1a8ee64dc50 to your computer and use it in GitHub Desktop.
Save yavuzyurtbegendi/fd25125c69be3f5c8a83f1a8ee64dc50 to your computer and use it in GitHub Desktop.
{
"data":{
"config":{
"version":"1.1"
},
"page":{
"disable":false,
"is_homepage":false,
"language":"tr",
"ctgry_subctgry":[
"MUSIC",
"rock$MUSIC"
],
"tags":[
"İstanbulBlueNight presents: MUSE",
"Muse",
"MUSIC",
"rock$MUSIC",
"KüçükÇiftlik Park",
"İstanbul"
]
},
"primary_mo":{
"id":[
{
"id":"TLEKC_tr",
"type":"event"
}
],
"name":[
{
"name":"İstanbulBlueNight presents: MUSE"
}
],
"description":[
{
"description":"İstanbul Blue Night sponsorluğunda efsane İngiliz rock grubu Muse, 26 Temmuz'da KüçükÇiftlik Park'a bir kez daha hayranlarıyla buluşmaya geliyor!Şehrin olmazları olduran festivali İstanbul Blue Night, 10 yıllık özlemin ardından Muse’u sevenleriyle buluşturuyor. Çıktığı Avrupa Festival Turnesi kap..."
}
],
"primary_tag":"event_TLEKC",
"facebook":{
"create_event":true
},
"tags":[
"İstanbulBlueNight presents: MUSE",
"Muse",
"MUSIC",
"rock$MUSIC",
"KüçükÇiftlik Park",
"İstanbul",
"tr"
],
"url":{
"detail":"http://www.biletix.com/etkinlik/TLEKC/TURKIYE/tr",
"purchase":"http://www.biletix.com/biletsec/TLEKC/TURKIYE/tr",
"picture":{
"primary":"http://www.biletix.com/static/images/live/event/eventimages/muse_2016_01.jpg"
}
},
"location":{
"name":"KüçükÇiftlik Park",
"city":"İstanbul",
"state":"",
"country":"Türkiye",
"postal_code":"",
"latitude":"41.041936",
"longitude":"28.994569"
},
"product_date":[
{
"start":{
"date":"2016-07-26",
"time":"13:00",
"timezone":"Europe/Istanbul"
},
"end":{
"date":"2016-07-26",
"time":"13:00",
"timezone":"Europe/Istanbul"
}
}
]
}
},
"fbData":{
"id": "1608185729462551",
"name": "Deneme5 Deneme6",
"first_name": "Deneme 1",
"last_name": "Deneme 2",
"email":"deneme3@deneme4.com",
"gender":"male"
},
"joinType":"going",
"perms":{"status":"granted"}
}
/**
* post rsvp data
*/
Button postRsvpBt = (Button) findViewById(R.id.postRsvpBt);
postRsvpBt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
JSONObject jsonObject = null;
try {
jsonObject = new JSONObject("the_example_payload_in_expected_example_payload_rsvp.txt");
} catch (Exception e) {}
Insider.Instance.postEventDetails(jsonObject, new Events.PostEventListener() {
@Override
public void onSuccess(String result) {
System.out.println("rsvp data posted");
}
});
}
});
/**
* get events count
*/
Button getEventCountsBt = (Button) findViewById(R.id.getEventCountsBt);
getEventCountsBt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Insider.Instance.getEventDetails(eventId, new Events.EventCountListener() {
@Override
public void onSuccess(String eventCount) {
Toast.makeText(activity, "Result from get, " + eventCount, Toast.LENGTH_LONG).show();
}
});
}
});
/**
* is rsvped ?
*/
Button isRsvpedBt = (Button) findViewById(R.id.isRsvpedBt);
isRsvpedBt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Insider.Instance.rsvpUserEventCheck(clientId, eventId, new Events.UserRsvpListener() {
@Override
public void onSuccess(Boolean isRsvped) {
Toast.makeText(activity, "Result from is rsvped, " + isRsvped, Toast.LENGTH_LONG).show();
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment