Societe DUBAI

API Documentation

Introduction

Resource URL http://app.societe.ae/api/
Request Method REST
Type Post
Response Format JSON





Table Reservation (Save)

Resource URL api/reservations/table_booking
Request Method REST
Type POST
Response Format JSON

Parameter Description
name Required
mobile Required
email Required
peoples Required
res_date Required
res_time Required
uid Required

JSON Response

{
    error: false
    message: "Thank you for joining us! One member of our team will contact you shortly to confirm your booking!"
}
					


Guestlist (Save)

Resource URL api/reservations/guest_booking
Request Method REST
Type POST
Response Format JSON

Parameter Description
name Required
mobile Required
email Required
peoples Required
res_date Required
res_time Required
uid Required

JSON Response

{
    error: false
    message: "Thank you for joining our Guest List! Please be aware that Entrance to Societe Nightclub is always subject to Door Managers discretion."
}
					


Table Reservation (View)

Resource URL api/reservations/table_listing
Request Method REST
Type Get
Response Format JSON


JSON Response

{
    error: false
    table_reservation: [2]
    0:  {
        id: "2"
        name: "DD"
        mobile: "03125572025"
        email: "naveed@devdesks.com"
        peoples: "3"
        res_date: "2015-11-20"
        res_time: "11:11:11"
    }
    1:  {
        id: "1"
        name: "Dev Desks"
        mobile: "03125572025"
        email: "naveed@devdesks.com"
        peoples: "5"
        res_date: "2015-11-17"
        res_time: "11:17:11"
    }
}
					


Guestlist (View)

Resource URL api/reservations/guest_listing
Request Method REST
Type Get
Response Format JSON


JSON Response

{
    error: false
    guestlist: [1]
    0:  {
        id: "3"
        name: "Dev Desks"
        mobile: "03125572025"
        email: "naveed@devdesks.com"
        peoples: "5"
        res_date: "2015-11-25"
        res_time: "11:11:11"
    }
}
					


Club Hits (SoundCloud)

Resource URL api/club_hits
Request Method REST
Type Get
Response Format JSON


JSON Response

{
    error: false
    club_hits: [2]
    0:  {
        id: "1"
        title: "PittBull feat Mark Anthony-Rain Over Me (DaraDj mix)"
        description: "Un remix cosecha propia"
        duration: "3.39"
        image: "http://societe.ae/appcms/assets/uploads/soundcloud/8d07161a8e5e1d6719a5ba21c4bc9b53.jpg"
        stream_url: "https://api.soundcloud.com/tracks/23592286/stream?client_id=14210390c0f69455e911ca99a4ed01ce"
        created: "2015-11-20 07:53:44"
    }
    1:  {
        id: "2"
        title: "Jeena Jeena | Atif Aslam OST Badlapur"
        description: "Listen to ‘Jeena Jeena', a mesmerizing romantic song from Badlapur. "
        duration: "3.37"
        image: "http://societe.ae/appcms/assets/uploads/soundcloud/3ec3bb8c60288f7ef1a55d24ae30777d.jpg"
        stream_url: "https://api.soundcloud.com/tracks/186053724/stream?client_id=14210390c0f69455e911ca99a4ed01ce"
        created: "2015-11-24 01:47:36"
    }
}				


Club Highlights (Videos)

Resource URL api/club_highlights
Request Method REST
Type Get
Response Format JSON


JSON Response

{
    "error": false
    "club_highlights": [4]
    0:  {
        "id": "3"
        "title": "Societe of the dead"
        "description": "Societe of the dead"
        "video_url": "https://www.youtube.com/watch?v=iFfLiznGajc"
        "image": "https://img.youtube.com/vi/iFfLiznGajc/hqdefault.jpg"
        "youtube_id": "iFfLiznGajc"
    }
    1:  {
        "id": "4"
        "title": "Bad Santa & The Easy Elves"
        "description": "Bad Santa & The Easy Elves"
        "video_url": "https://www.youtube.com/watch?v=vQcFNt1_SpM"
        "image": "https://img.youtube.com/vi/vQcFNt1_SpM/hqdefault.jpg"
        "youtube_id": "vQcFNt1_SpM"
        }
    2:  {
        "id": "5"
        "title": "Take That Party"
        "description": "Take That Party"
        "video_url": "https://www.youtube.com/watch?v=evi7IaNRU-s"
        "image": "https://img.youtube.com/vi/evi7IaNRU-s/hqdefault.jpg"
        "youtube_id": "evi7IaNRU-s"
    }
    3:  {
        "id": "10"
        "title": "Halloween"
        "description": "Halloween"
        "video_url": "https://www.youtube.com/watch?v=pftEq11Fnq8"
        "image": "https://img.youtube.com/vi/pftEq11Fnq8/hqdefault.jpg"
        "youtube_id": "pftEq11Fnq8"
    }
}
					


All Events

Resource URL api/events
Request Method REST
Type Get
Response Format JSON


JSON Response

{
    "error": false
    "events": [5]
    0:  {
        "event_id": "1"
        "event_name": "Behind Blue eyes"
        "event_description": "Behind Blue eyes Description"
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_06df2029e2d571e5836cdd105bdc8f3a.jpg"
        "event_date": "Thursday 19th Nov 2015"
        "event_time": "12:10 AM"
    }
    1:  {
        "event_id": "2"
        "event_name": "Saturday Night At Societe"
        "event_description": "Saturday Night At Societe Description"
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_fbf8e569a641076c5d4eebfb84efff0c.jpg"
        "event_date": "Thursday 19th Nov 2015"
        "event_time": "12:05 AM"
    }
    2:  {
        "event_id": "14"
        "event_name": "Societe ROCK NIGHT"
        "event_description": "Societe ROCK NIGHT Description"
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_bfe3bafa3b7330e9628d8101d1c9a06d.jpg"
        "event_date": "Thursday 19th Nov 2015"
        "event_time": "12:00 AM"
    }
    3:  {
        "event_id": "40"
        "event_name": "Sunday Night At Societe"
        "event_description": "Sunday Night At Societe"
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_74844b3e0dc56ad3bf62023d68e22f88.jpg"
        "event_date": "Sunday 6th Dec 2015"
        "event_time": "11:00 PM"
    }
    4:  {
        "event_id": "42"
        "event_name": "Thursday night at Societes"
        "event_description": ""
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_3575ff1167a75e796bc4389dcfd751d4.jpg"
        "event_date": "Thursday 3rd Dec 2015"
        "event_time": "12:15 AM"
    }
}
					


Opening Hours

Resource URL api/home/opening_hours
Request Method REST
Type GET
Response Format JSON


JSON Response

{
    "error": false
    "days": "1,2,3,4,5,6,7"
    "opening_hours": "14:30:00"
    "closing_hours": "14:30:00"
}
					


Upload Selfie

Resource URL api/selfies/save_selfie
Request Method REST
Type POST
Response Format JSON

Parameter Description
selfie Required
uid Required
frame_id Required

JSON Response

{
    error: false
    selfie_url: "http://societe.ae/appcms/assets/uploads/selfies/b157297ac1c006031af6c61c06b058ac.png"
    message: "Selfie uploaded successfully."
}
					


Resource URL api/events/event_gallery/{:event_id}
Request Method REST
Type GET
Response Format JSON


JSON Response

{
    error: false
    event_name: "Behind Blue eyes"
    event_description: "Behind Blue eyes"
    gallery: [8]
    0:  {
        id: "1"
        image_url: "http://societe.ae/appcms/assets/uploads/7732c3b7251f381913ac19d332f6cad6.jpg"
        title: ""
        description: ""
    }
    1:  {
        id: "2"
        image_url: "http://societe.ae/appcms/assets/uploads/74e2d3e9f134ab3bf813868535be3831.jpg"
        title: ""
        description: ""
    }
    2:  {
        id: "3"
        image_url: "http://societe.ae/appcms/assets/uploads/dad31bf629a9f6d55da9a2bce44e7e3e.jpg"
        title: ""
        description: ""
    }
    3:  {
        id: "4"
        image_url: "http://societe.ae/appcms/assets/uploads/d21d7cfc1fcc87a3fa78ddb70acf0d97.jpg"
        title: ""
        description: ""
    }
    4:  {
        id: "5"
        image_url: "http://societe.ae/appcms/assets/uploads/743fb63f903f7094ec6b860dba0297ce.jpg"
        title: ""
        description: ""
    }
    5:  {
        id: "6"
        image_url: "http://societe.ae/appcms/assets/uploads/448279ac087af429ee94123b297fbc3c.jpg"
        title: ""
        description: ""
    }
    6:  {
        id: "7"
        image_url: "http://societe.ae/appcms/assets/uploads/6662e8f166249fa08c29fba4f0bf17f5.jpg"
        title: ""
        description: ""
    }
    7:  {
        id: "8"
        image_url: "http://societe.ae/appcms/assets/uploads/5fcd89fff50bec744bf28c1e9c63def1.jpg"
        title: ""
        description: ""
    }
}
					


Contact US

Resource URL api/home/contact
Request Method REST
Type GET
Response Format JSON


JSON Response

{
    error: false
    contact: {
        phone: "+971 50 699 0704"
        email: "likho@suno1024.com"
        address: "Marina Byblos Hotel, Dubai Marina 1st floor, Dubai, UAE"
        open: "Thursday to Saturaday "
        closed: "Thursday to Saturaday "
        opening_hours: "10pm - 2pm"
        latlong: "33.664440,73.052307"
    }
}
            


Resource URL api/events/recent_gallery
Request Method REST
Type Get
Response Format JSON


JSON Response

{
    "error": false
    "events": [5]
    0:  {
        "event_id": "40"
        "event_name": "Sunday Night At Societe"
        "event_description": "Sunday Night At Societe"
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_74844b3e0dc56ad3bf62023d68e22f88.jpg"
        "event_date": "Sunday 6th Dec 2015"
        "event_time": "11:00 PM"
    }
    1:  {
        "event_id": "42"
        "event_name": "Thursday night at Societes"
        "event_description": ""
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_3575ff1167a75e796bc4389dcfd751d4.jpg"
        "event_date": "Thursday 3rd Dec 2015"
        "event_time": "12:15 AM"
    }
    2:  {
        "event_id": "1"
        "event_name": "Behind Blue eyes"
        "event_description": "Behind Blue eyes Description"
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_06df2029e2d571e5836cdd105bdc8f3a.jpg"
        "event_date": "Thursday 19th Nov 2015"
        "event_time": "12:10 AM"
    }
    3:  {
        "event_id": "2"
        "event_name": "Saturday Night At Societe"
        "event_description": "Saturday Night At Societe Description"
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_fbf8e569a641076c5d4eebfb84efff0c.jpg"
        "event_date": "Thursday 19th Nov 2015"
        "event_time": "12:05 AM"
    }
    4:  {
        "event_id": "14"
        "event_name": "Societe ROCK NIGHT"
        "event_description": "Societe ROCK NIGHT Description"
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_bfe3bafa3b7330e9628d8101d1c9a06d.jpg"
        "event_date": "Thursday 19th Nov 2015"
        "event_time": "12:00 AM"
    }
}
					


Resource URL api/events/popular_gallery
Request Method REST
Type Get
Response Format JSON


JSON Response

{
    "error": false
    "events": [3]
    0:  {
        "event_id": "1"
        "event_name": "Behind Blue eyes"
        "event_description": "Behind Blue eyes Description"
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_06df2029e2d571e5836cdd105bdc8f3a.jpg"
        "event_date": "Thursday 19th Nov 2015"
        "event_time": "12:10 AM"
    }
    1:  {
        "event_id": "2"
        "event_name": "Saturday Night At Societe"
        "event_description": "Saturday Night At Societe Description"
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_fbf8e569a641076c5d4eebfb84efff0c.jpg"
        "event_date": "Thursday 19th Nov 2015"
        "event_time": "12:05 AM"
    }
    2:  {
        "event_id": "42"
        "event_name": "Thursday night at Societes"
        "event_description": ""
        "event_image": "http://societe.ae/appcms/assets/uploads/events/thumbnails/tmb1_3575ff1167a75e796bc4389dcfd751d4.jpg"
        "event_date": "Thursday 3rd Dec 2015"
        "event_time": "12:15 AM"
    }
}
					


Event Detail

Resource URL api/events/event_detail
Request Method REST
Type Get
Response Format JSON

Parameter Description
uid Required
event_id Required

JSON Response

{
    "error": false
    "event": {
        "event_id": "42"
        "event_name": "Thursday night at Societes"
        "event_description": "Thursday night at Societes"
        "event_image": "http://app.societe.ae/assets/uploads/events/thumbnails/tmb1_99462cce5818d11892d595e6a4420ebf.jpg"
        "event_date": "Thursday 3rd Dec 2015"
        "event_time": "11:30 AM"
        "booking": "0"
        "popular": "1"
        "status_id": "1"
    }
    "gallery": [4]
    0:  {
    	"id": "14"
    	"image_url": "http://app.societe.ae/assets/uploads/3ba589d0505f708dccbd79ff29b07644.jpg"
    }
    1:  {
    	"id": "15"
    	"image_url": "http://app.societe.ae/assets/uploads/5f5b1f9a8238dc629ad34bd76bfcb6c3.jpg"
    }
    2:  {
    	"id": "16"
    	"image_url": "http://app.societe.ae/assets/uploads/ccf638991477407ba9107b1b6c9ab69e.jpg"
    }
    3:  {
    	"id": "17"
    	"image_url": "http://app.societe.ae/assets/uploads/398af4915bd37b1a738a7f18f836d3f7.jpg"
    }
}
					


Resource URL api/gallery/recent_gallery
Request Method REST
Type Get
Response Format JSON


JSON Response

{
    "error": false
    "events": [3]
    0:  {
        "event_id": "3"
        "event_name": "Vintage Societe 18.2.16"
        "event_description": ""
        "event_image": "http://app.societe.ae/assets/uploads/e9f799bb5094a745833a292bc338e003.jpg"
        "event_date": "Saturday 27th Feb 2016"
        "event_time": "9:00 AM"
    }
    1:  {
        "event_id": "1"
        "event_name": "Gallery 1"
        "event_description": "Gallery 1 Description"
        "event_image": "http://app.societe.ae/assets/uploads/70abf09e17bce48730d1c3b71dedee2d.jpg"
        "event_date": "Wednesday 24th Feb 2016"
        "event_time": "2:09 AM"
    }
    2:  {
        "event_id": "2"
        "event_name": "Valentine Day 15"
        "event_description": ""
        "event_image": "http://app.societe.ae/assets/uploads/12820492f54c957383ffc13cc63bf70e.jpg"
        "event_date": "Tuesday 23rd Feb 2016"
        "event_time": "9:20 AM"
    }
}
					


Resource URL api/gallery/popular_gallery
Request Method REST
Type Get
Response Format JSON


JSON Response

{
    "error": false
    "events": [3]
    0:  {
        "event_id": "3"
        "event_name": "Vintage Societe 18.2.16"
        "event_description": ""
        "event_image": "http://app.societe.ae/assets/uploads/e9f799bb5094a745833a292bc338e003.jpg"
        "event_date": "Saturday 27th Feb 2016"
        "event_time": "9:00 AM"
    }
    1:  {
        "event_id": "1"
        "event_name": "Gallery 1"
        "event_description": "Gallery 1 Description"
        "event_image": "http://app.societe.ae/assets/uploads/70abf09e17bce48730d1c3b71dedee2d.jpg"
        "event_date": "Wednesday 24th Feb 2016"
        "event_time": "2:09 AM"
    }
    2:  {
        "event_id": "2"
        "event_name": "Valentine Day 15"
        "event_description": ""
        "event_image": "http://app.societe.ae/assets/uploads/12820492f54c957383ffc13cc63bf70e.jpg"
        "event_date": "Tuesday 23rd Feb 2016"
        "event_time": "9:20 AM"
    }
}
					


Resource URL api/gallery/event_gallery/{:event_id}
Request Method REST
Type GET
Response Format JSON


JSON Response

{
    error: false
    event_name: "Behind Blue eyes"
    event_description: "Behind Blue eyes"
    gallery: [8]
    0:  {
        id: "1"
        image_url: "http://societe.ae/appcms/assets/uploads/7732c3b7251f381913ac19d332f6cad6.jpg"
        title: ""
        description: ""
    }
    1:  {
        id: "2"
        image_url: "http://societe.ae/appcms/assets/uploads/74e2d3e9f134ab3bf813868535be3831.jpg"
        title: ""
        description: ""
    }
    2:  {
        id: "3"
        image_url: "http://societe.ae/appcms/assets/uploads/dad31bf629a9f6d55da9a2bce44e7e3e.jpg"
        title: ""
        description: ""
    }
    3:  {
        id: "4"
        image_url: "http://societe.ae/appcms/assets/uploads/d21d7cfc1fcc87a3fa78ddb70acf0d97.jpg"
        title: ""
        description: ""
    }
    4:  {
        id: "5"
        image_url: "http://societe.ae/appcms/assets/uploads/743fb63f903f7094ec6b860dba0297ce.jpg"
        title: ""
        description: ""
    }
    5:  {
        id: "6"
        image_url: "http://societe.ae/appcms/assets/uploads/448279ac087af429ee94123b297fbc3c.jpg"
        title: ""
        description: ""
    }
    6:  {
        id: "7"
        image_url: "http://societe.ae/appcms/assets/uploads/6662e8f166249fa08c29fba4f0bf17f5.jpg"
        title: ""
        description: ""
    }
    7:  {
        id: "8"
        image_url: "http://societe.ae/appcms/assets/uploads/5fcd89fff50bec744bf28c1e9c63def1.jpg"
        title: ""
        description: ""
    }
}
					


Guest List

Resource URL api/home/guestlist
Request Method REST
Type Get
Response Format JSON


JSON Response

{
    error: false
    guestlist: [3]
    0:  {
        name: "John"
        tagline: "John Tagline"
        description: "John Description"
        image_url: "http://societe.ae/appcms/assets/uploads/guestlist/thumbnails/tmb1_8bf0a84ab411f6a9aef384a3a7dcb64a.jpg"
    }
    1:  {
        name: "Mark"
        tagline: "Mark tagline"
        description: "Mark Description"
        image_url: "http://societe.ae/appcms/assets/uploads/guestlist/thumbnails/tmb1_26cf4128102397e65b484f5c77cfe122.jpg"
    }
    2:  {
        name: "Alex"
        tagline: "Alex Tagline"
        description: "Alex Description"
        image_url: "http://societe.ae/appcms/assets/uploads/guestlist/thumbnails/tmb1_24c1c5d553b2432ccba3881804f61ddd.jpg"
    }
}				


Facebook Login

Resource URL api/fb/login
Request Method REST
Type POST
Response Format JSON

Parameter Description
access_token Required
device_id Required
device_type Required (android/ios)
longitude Optional
latitude Optional

JSON Response

{
    "error": false
    "id": "8"
    "first_name": "Khurram"
    "last_name": "Shehzad"
    "name": "Khurram Shehzad"
    "age": "21"
    "gender": "male"
    "image": "https://graph.facebook.com/127025837667709/picture?type=large"
}
            


Facebook Friendlist

Resource URL api/fb/friendlist
Request Method REST
Type POST
Response Format JSON

Parameter Description
access_token Required

JSON Response

{
    "error": false
    "friendlist": [3]
    0:  {
        "id": "1"
        "name": "Naveed Arshad"
        "image": "https://graph.facebook.com/454892841349508/picture?type=large"
    }
    1:  {
        "id": "6"
        "name": "Arshad Khan Sherani"
        "image": "https://graph.facebook.com/1617172325214579/picture?type=large"
    }
    2:  {
        "id": "3"
        "name": "Muhammad Bilal"
        "image": "https://graph.facebook.com/149323938764563/picture?type=large"
    }
}
{
    "error": false
    "message": "You don't have any friend yet."
}
            


Home Screen

Resource URL api/home/slider
Request Method REST
Type GET
Response Format JSON

JSON Response

{
    "error": false
    "slider": [5]
    0:  {
   		"image_url": "http://societe.ae/appcms/assets/uploads/slider/thumbnails/tmb1_f1dc4a343d547ddc279a088b253796d3.jpg"
    }
    1:  {
    	"image_url": "http://societe.ae/appcms/assets/uploads/slider/thumbnails/tmb1_522b7743a5e704bf8ff4c83eada5cf99.jpg"
    }
    2:  {
    	"image_url": "http://societe.ae/appcms/assets/uploads/slider/thumbnails/tmb1_2dc8cbd2715f4aa441306eb7c2038aba.jpg"
    }
    3:  {
    	"image_url": "http://societe.ae/appcms/assets/uploads/slider/thumbnails/tmb1_eb734f8be0aa6aed85ce6f96c11a460e.jpg"
    }
    4:  {
    	"image_url": "http://societe.ae/appcms/assets/uploads/slider/thumbnails/tmb1_dd066606f767659c62bcdfdc92b42eaa.jpg"
    }
}
        


Privacy Policy

Resource URL api/home/privacy_policy
Request Method REST
Type GET
Response Format JSON

JSON Response

{
    "error": false
    "description": "Privacy Policy Text Here"
}
        


Send Chat

Resource URL api/chat/send
Request Method REST
Type POST
Response Format JSON

Parameter Description
sender_id Required
reciever_id Required
message Required

JSON Response

{
    "error": false
    "chat": {
        "message": "hello how are you"
        "id": "1"
        "name": "Naveed Arshad"
        "image": "https://graph.facebook.com/454892841349508/picture?type=normal"
        "chat_date": "2015-12-16"
        "chat_time": "3:34 PM"
    }
}
            


Update Availability

Resource URL api/fb/availability
Request Method REST
Type POST
Response Format JSON

Parameter Description
availability Required (1 for online/0 for offline)
uid Required

JSON Response

{
	"error": false
	"message": "online"
}
{
	"error": false
	"message": "offline"
}
            


Check Availability

Resource URL api/fb/check_availability
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required

JSON Response

{
	"error": false
	"availability": "online"
}
{
	"error": false
	"availability": "offline"
}
            


Chat History

Resource URL api/chat/history
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required
friend_id Required
limit Required
offset Required

JSON Response

{
    "error": false
    "chat": [3]
    0:  {
        "sender_id": "1"
        "message": "message 4 here 4"
        "chat_date": "2015-12-17"
        "chat_time": "12:19 PM"
        "image": "http://societe.ae/appcms/assets/uploads/users/thumbnails/tmb1_2fe2474fe47fb06f19b46e325508dce8.jpg"
    }
    1:  {
        "sender_id": "1"
        "message": "message 4 here 4"
        "chat_date": "2015-12-17"
        "chat_time": "12:19 PM"
        "image": "http://societe.ae/appcms/assets/uploads/users/thumbnails/tmb1_2fe2474fe47fb06f19b46e325508dce8.jpg"
    }
    2:  {
        "sender_id": "1"
        "message": "message 4 here 4"
        "chat_date": "2015-12-17"
        "chat_time": "12:25 PM"
        "image": "http://societe.ae/appcms/assets/uploads/users/thumbnails/tmb1_2fe2474fe47fb06f19b46e325508dce8.jpg"
    }
}
{
    "error": false
    "chat": [0]
    "message": "No Chat History Found."
}
            


Recent Chat

Resource URL api/chat/recent_chats
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required

JSON Response

{
    "error": false
    "chat": [2]
    0:  {
        "uid": "22"
        "first_name": "Khurram"
		"last_name": "Shehzad"
        "message": "hello"
        "chat_date": "2016-02-17"
        "chat_time": "1:56 PM"
        "time_ago": "19 minutes ago"
        "image": "http://app.societe.ae/assets/uploads/photos/thumbnails/tmb1_05fab743e51fa6dfbb3c31c4188fccda.jpg"
    }
    1:  {
        "uid": "14"
        "first_name": "Khurram"
		"last_name": "Shehzad"
        "message": "Hello 1"
        "chat_date": "2016-02-17"
        "chat_time": "11:29 AM"
        "time_ago": "2016-02-17"
        "image": "https://graph.facebook.com/10208400762362251/picture?type=large"
    }
}
{
    "error": false
    "chat": [0]
    "message": "No Recent Chat Found."
}
            


Societe Mixer Users

Resource URL api/fb/users
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required

JSON Response

{
  "error": false,
  "users": [
    {
      "id": "1",
      "first_name": "Naveed",
      "last_name": "Arshad",
      "name": "Naveed Arshad",
      "age": "21",
      "dob": "01/06/1995",
      "gender": "male",
      "profile_pic": "https://graph.facebook.com/454892841349508/picture?type=large",
      "availability": "Online",
      "education": "",
      "job": "",
      "employer": "",
      "school": "",
      "about_me": "",
      "description": "",
      "is_block": false,
      "block_by": "",
      "lastlogin": "8 minutes ago",
      "distance": "5251.01 Miles",
      "photos": "4",
      "is_favourite": "0",
      "favourites": "4",
      "is_chat_enabled": "0"
    },
    {
      "id": "24",
      "first_name": "Sheikh",
      "last_name": "Azhar",
      "name": "Sheikh Azhar",
      "age": "",
      "dob": "",
      "gender": "male",
      "profile_pic": "http://app.societe.ae/assets/uploads/photos/thumbnails/tmb1_b14d408db8e4ea3a88917c64169f1964.jpg",
      "availability": "Online",
      "education": "",
      "job": "project Managerbhhh",
      "employer": "Dataslicesvvv",
      "school": "",
      "about_me": "Testing information Testing information",
      "description": "",
      "is_block": false,
      "block_by": "",
      "lastlogin": "3 months ago",
      "distance": "4063.61 Miles",
      "photos": "6",
      "is_favourite": "0",
      "favourites": "7",
      "is_chat_enabled": "0"
    }
  ]
}
            


Save Profile

Resource URL api/home/save_profile
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required
education Optional
job Optional
employer Optional
school Optional
about_me Optional
description Optional
dob Optional

JSON Response

{
    "error": false
    "message": "Profile save successfully."
}
            


User Profile

Resource URL api/home/user_profile
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required
profile_id Required

JSON Response

{
  "error": false,
  "user": {
    "id": "41",
    "first_name": "Umer",
    "last_name": "Afzal",
    "age": "0",
    "dob": "02/06/2016",
    "gender": "male",
    "name": "Umer Afzal",
    "profile_pic": "https://graph.facebook.com/1007045639375810/picture?type=large",
    "education": "",
    "job": "",
    "employer": "",
    "school": "",
    "about_me": "",
    "description": "",
    "availability": "Online",
    "lastlogin": "36 minutes ago",
    "is_block": false,
    "block_by": "",
    "distance": "5251.01 Miles",
    "is_favourite": "0",
    "favourites": "0",
    "is_chat_enabled": "0"
  },
  "photos": [
    {
      "id": "681",
      "image": "https://graph.facebook.com/1007045639375810/picture?type=large",
      "index": "0",
      "uploaded": "2016-04-08 10:12:55"
    },
    {
      "id": "687",
      "image": "http://app.societe.ae/assets/uploads/photos/thumbnails/tmb1_4a856257971315e8ee3c9f0553547bcf.jpg",
      "index": "1",
      "uploaded": "2016-05-30 10:48:48"
    }
  ]
}
{
    "error": true
    "message": "No User Record Found"
}
            


Block User

Resource URL api/home/block
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required
block_friend_id Required

JSON Response

{
    "error": false
    "message": "User block successfully."
}
            


unblock User

Resource URL api/home/unblock
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required
block_friend_id Required

JSON Response

{
    "error": false
    "message": "User unblock successfully."
}
{
    "error": true
    "message": "Unable to block user."
}
            


Resource URL api/home/search
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required
gender (male/female) Required
age (1/2/3/4) Required

JSON Response

{
  "error": false,
  "users": [
    {
      "id": "14",
      "first_name": "Khurram",
      "last_name": "Shehzad",
      "name": "Khurram Shehzad",
      "age": "28",
      "dob": "30/11/1987",
      "gender": "male",
      "profile_pic": "https://graph.facebook.com/10208400762362251/picture?type=large",
      "availability": "Offline",
      "education": "B.Sc Computer Engineering",
      "job": "Android Application Development",
      "employer": "Qubit Systems",
      "school": "",
      "about_me": "",
      "description": "ggg",
      "is_block": false,
      "block_by": "",
      "lastlogin": "3 months ago",
      "distance": "0.04 Miles",
      "photos": "5",
      "is_favourite": "0",
      "favourites": "8",
      "is_chat_enabled": "0"
    },
    {
      "id": "8",
      "first_name": "Khurram",
      "last_name": "Shehzad",
      "name": "Khurram Shehzad",
      "age": "30",
      "dob": "30/11/1985",
      "gender": "male",
      "profile_pic": "https://graph.facebook.com/127025837667709/picture?type=large",
      "availability": "Online",
      "education": "B.Sc Computer Engg",
      "job": "Android Applications Development",
      "employer": "Qubit Systems",
      "school": "",
      "about_me": "",
      "description": "about me",
      "is_block": false,
      "block_by": "",
      "lastlogin": "4 months ago",
      "distance": "0.04 Miles",
      "photos": "1",
      "is_favourite": "0",
      "favourites": "2",
      "is_chat_enabled": "0"
    },
    {
      "id": "46",
      "first_name": "Muhammad",
      "last_name": "Usama",
      "name": "Muhammad Usama",
      "age": "31",
      "dob": "05/02/1985",
      "gender": "male",
      "profile_pic": "https://graph.facebook.com/1282252395135889/picture?type=large",
      "availability": "Online",
      "education": "",
      "job": "",
      "employer": "",
      "school": "",
      "about_me": "",
      "description": "",
      "is_block": false,
      "block_by": "",
      "lastlogin": "3 hours ago",
      "distance": "5251.01 Miles",
      "photos": "1",
      "is_favourite": "0",
      "favourites": "1",
      "is_chat_enabled": "0"
    },
    {
      "id": "9",
      "first_name": "Muhammad",
      "last_name": "Bilal",
      "name": "Muhammad Bilal",
      "age": "29",
      "dob": "30/11/1986",
      "gender": "male",
      "profile_pic": "https://graph.facebook.com/1095223520510610/picture?type=large",
      "availability": "Offline",
      "education": "MS Software Engineer",
      "job": "IOS Developer",
      "employer": "IOS Developer",
      "school": "MS Software Engineer",
      "about_me": "IOS Developer",
      "description": "IOS Developer",
      "is_block": false,
      "block_by": "",
      "lastlogin": "4 months ago",
      "distance": "0.04 Miles",
      "photos": "1",
      "is_favourite": "0",
      "favourites": "4",
      "is_chat_enabled": "0"
    },
    {
      "id": "19",
      "first_name": "Umer",
      "last_name": "Afzal",
      "name": "Umer Afzal",
      "age": "23",
      "dob": "30/11/1992",
      "gender": "male",
      "profile_pic": "https://graph.facebook.com/953133878100320/picture?type=large",
      "availability": "Online",
      "education": "",
      "job": "",
      "employer": "",
      "school": "",
      "about_me": "",
      "description": "",
      "is_block": false,
      "block_by": "",
      "lastlogin": "4 months ago",
      "distance": "16.13 Miles",
      "photos": "1",
      "is_favourite": "0",
      "favourites": "4",
      "is_chat_enabled": "0"
    }
  ]
}
{
  "error": true,
  "message": "No Record Found",
  "users": []
}
            


My Profile

Resource URL api/home/my_profile
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required

JSON Response

{
  "error": false,
  "user": {
    "id": "1",
    "first_name": "Naveed",
    "last_name": "Arshad",
    "age": "21",
    "dob": "01/06/1995",
    "gender": "male",
    "name": "Naveed Arshad",
    "profile_pic": "https://graph.facebook.com/454892841349508/picture?type=large",
    "education": "",
    "job": "",
    "employer": "",
    "school": "",
    "about_me": "",
    "description": "",
    "availability": "Online",
    "favourites": "4"
  },
  "photos": [
    {
      "id": "14",
      "image": "https://graph.facebook.com/454892841349508/picture?type=large",
      "index": "1",
      "uploaded": "2016-01-13 10:20:28"
    },
    {
      "id": "437",
      "image": "http://app.societe.ae/assets/uploads/photos/thumbnails/tmb1_376d539ff35dba58cb7331ca5618f588.png",
      "index": "2",
      "uploaded": "2016-02-10 13:11:43"
    },
    {
      "id": "438",
      "image": "http://app.societe.ae/assets/uploads/photos/thumbnails/tmb1_7ac65d40fdf60ed53270bb0ec318b311.png",
      "index": "3",
      "uploaded": "2016-02-10 13:12:46"
    },
    {
      "id": "480",
      "image": "http://app.societe.ae/assets/uploads/photos/thumbnails/tmb1_38b5f5122c75adb6100b4d52d2918748.png",
      "index": "10",
      "uploaded": "2016-02-11 06:40:31"
    }
  ]
}
{
    "error": true
    "message": "No User Record Found"
}
            


Logout

Resource URL api/fb/logout
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required
availability Required

JSON Response

{
    "error": false
    "message": "Logout Successfully."
}
{
    "error": true
    "message": "No User Record Found"
}
            


Save Photos

Resource URL api/photos/save
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required
image Required

JSON Response

{
    "error": false
    "id": "5"
    "index": "1"
    "message": "Photo uploaded successfully."
}
{
    "error": true
    "message": "Database Error."
}
            


Delete Photos

Resource URL api/photos/delete
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required
photo_id Required

JSON Response

{
    "error": false
    "message": "Photos deleted successfully."
}
{
    "error": true
    "message": "Unable to delete this Photo."
}
            


Update Photos

Resource URL api/photos/update_order
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required
photos Required

JSON Response

{
    "error": false
    "message": "Photos order changed successfully."
}
        


Get Notifications

Resource URL api/notifications/get
Request Method REST
Type POST
Response Format JSON

Parameter Description
uid Required

JSON Response

{
    "error": false
    "notifications": [1]
    0:  {
        "notification_id": "177"
        "sender_id": "14"
        "first_name": "Khurram"
        "message": "Wa Alaikum Assalam"
        "notification_date": "2016-01-15"
        "notification_time": "9:27 AM"
        "profile_pic": "https://graph.facebook.com/10208400762362251/picture?type=large"
        "type": "2"
    }
}
            


Add Favourite

Resource URL api/favourite/add
Request Method REST
Type POST
Response Format JSON

Parameter Description
sender_id Required
reciever_id Required

JSON Response

{
    "error": false
    "message": "Naveed added you as favourite"
}
{
    "error": false
    "message": "unfavourite Successfully."
}
            








Update Notification

Resource URL api/notifications/update
Request Method REST
Type POST
Response Format JSON

Parameter Description
id Required

JSON Response

{
    "error": false
    "message": "Notification Removed Successfully."
}
            


Frames

Resource URL api/home/frames
Request Method REST
Type GET
Response Format JSON

JSON Response

{
    "error": false
    "frames": [3]
    0:  {
        "frame_id": "1"
        "image_url": "/appcms/assets/uploads/frames/thumbnails/tmb1_59df2c252be3ad0ac3fad4c84fb26f80.png"
    }
    1:  {
        "frame_id": "2"
        "image_url": "/appcms/assets/uploads/frames/thumbnails/tmb1_76775e6eeea1a4b1427c039b86c0c234.png"
    }
    2:  {
        "frame_id": "3"
        "image_url": "/appcms/assets/uploads/frames/thumbnails/tmb1_87db29cbf3f048379d346bbb30d28d8f.png"
    }
}
{
    "error": true
    "message": "No Record Found."
}