Kayıt Ol
OkeyRuyamm yeni insanlar tanımanıza yardımcı olur.
Oyun Listesi
OYUNLAR
0
   OYNA   
0
   OYNA   
15
   OYNA   
10
   OYNA   
20
   OYNA   

Geliştiriciler

As a developer you can create applications and add them to OkeyRuyamm, taking advantage of the existing user base. You host the application, which means that you are in full control of your server specifications.

Uygulama Ayarlama

To interact with OkeyRuyamm your application can issue calls to our API and request or post information.

Sitemize Bir uygulama eklediğinizde size bir UYGULAMA ID vereceğiz.

Belirteç Talebi

Uygulamamızı her kullanmak istediğinizde ilk önce bir belirteç talebinde bulunmanız gerekiyor. Belirteç için size göndereceğimiz bir anahtara ihtiyaç var, uygulamanızı ayrı bir pencerede kullanmak isteyen kullanıcılara gerekli bu. Anahtar görüntüsü $_GET['key'].
Bu bir örnek belirteç talebidir:
http://www.okeyruyamm.com/token.php?key=$_GET['key']
Başarılı olursa, JSON gibi bir yanıt alacaksınız:
Object
(
    [token] => LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUc4d0RRWUpLb1pJaHZjTkFRRUJCUUFEWGdBd1d3SlVBdHFZdmVWOXFEdDd6NFhXTXYzS3VZM2JyWXpUKzR0VgpBbERrN1dQWjhqRVpoVzBNWjE1Z3lHdGNlNm5ueFRNenp4SXpHM29BRVIzc0JVRCtYdStHb21JeVV4UE1RN1NtCkVPdFg0ZTNwekp6R081cUxBZ01CQUFFPQotLS0tLUVORCBQVUJMSUMgS0VZLS0tLS0K
)

İstek Gönderme

Şimdi belirteç ile sunucumuza istek yapabilirsiniz. Her istekde sizin için oluşturulan belirteç kullanılmalıdır.
Örnek bir uygulama çağrısı sunucumuzda bu şekilde görükür:
http://www.okeyruyamm.com/api.php?token=#{TOKEN}&method=#{METHOD_NAME}

Anlaşılmayan bir uygulama tepkisi

For methods that could return more than one item the response will contain an indicator of the total items available as well as how many pages there are. We return by default 10 items at most and in order to get the next 10 items you would have to pass the param "page=2". Sol tarafta API yöntemleri için uygulama modüllerinin bir listesini bulacaksınız. Kullanılabilir metodlara tıkladığınızda açılan öğe listesi ve sayfa listesi varsayılan gösterimden fazlaysa sayfalar numaralandırılarak değişir. Sayfa baına 10 tane öğe gösterilir, bu durumda daha fazlasında örneğin şu şekilde sayfa açlılır " sayfa = 2 ".

Sol tarafta uygulama metotlarıyla alakalı bir modül listesi bulacaksınız. Modüle tıklayarak listelere bakın. Uygulama metodlarında yalnızca boyutlandırma, biçimlendirme gibi temel ayarlar bulunmaktadır.

friend
getFriends
GET /api.php?method=friend.getFriends&user_id=#{USER_ID}
Belirli bir kullanıcının arkadaş listesini alır. #{USER_ID} geçemiyorsa kullanıcı hakkındaki bilgiler kendisi bir daha çevrimiçi olduğunda sorgulanacak.
Yanıt
Object
(
    [api] => Object
        (
            [total] => 1
            [pages] => 0
            [current_page] => 0
        )

    [output] => Array
        (
            [0] => Object
                (
                    [user_id] => 7
                    [user_name] => jane-doe
                    [full_name] => Jane Doe
                    [joined] => 1314110027
                    [country_iso] => US
                    [gender] => Female
                    [photo_50px] => http://www.okeyruyamm.com/file/pic/user/7_50.jpg
                    [photo_50px_square] => http://www.okeyruyamm.com/file/pic/user/7_50_square.jpg
                    [photo_120px] => http://www.okeyruyamm.com/file/pic/user/7_120.jpg
                    [photo_original] => http://www.okeyruyamm.com/file/pic/user/7.jpg
                    [profile_url] => http://www.okeyruyamm.com/index.php?do=/jane-doe/
                )

        )

)
isFriend
GET /api.php?method=friend.isFriend&user_id=#{USER_ID}&friend_user_id=#{FRIEND_USER_ID}
2 kullanıcının arkadaş olup olmadığını kontrol eder. #{USER_ID} geçemiyorsa kullanıcı hakkındaki bilgiler kendisi bir daha çevrimiçi olduğunda sorgulanacak.
Yanıt
Object
(
    [api] => Object
        (
            [total] => 0
            [pages] => 0
            [current_page] => 0
        )

    [output] => Object
        (
            [is_friend] => 1
        )

)
mail
getNewCount
GET /api.php?method=mail.getNewCount&user_id=#{USER_ID}
Görülmeyen mesajların toplam sayısını al. #{USER_ID} hakkında bilgi alınamıyorsa bir daha çevrimiçi olduğunda alınacaktır.
Yanıt
Object
(
    [api] => Object
        (
            [total] => 0
            [pages] => 0
            [current_page] => 0
        )

    [output] => 1
)
notification
getNewCount
GET /api.php?method=notification.getNewCount&user_id=#{USER_ID}
Görükmeyen bildirimlerin tümünü al. #{USER_ID} bilgileri alınamıyorsa kullanıcı bir daha çevrimiçi olduğunda alınacak.
Yanıt
Object
(
    [api] => Object
        (
            [total] => 5
            [pages] => 0
            [current_page] => 0
        )

    [output] => 5
)
get
GET /api.php?method=notification.get&user_id=#{USER_ID}
Bu kullanıcının tüm bildirimlerini al. #{USER_ID} bilgileri alınamıyorsa kullanıcı bir daha çevrimiçi olduğunda alınacak.
Yanıt
Object
(
    [api] => Object
        (
            [total] => 0
            [pages] => 0
            [current_page] => 0
        )

    [output] => Array
        (
            [0] => Object
                (
                    [notification_id] => 3
                    [link] => http://www.okeyruyamm.com/john-doe/comment-id_1/
                    [message] => Jane Doe commented on your wall
                    [icon] => http://www.okeyruyamm.com/module/blog/static/image/default/default/activity.png
                )

        )

)
photo
addPhoto
POST /api.php?method=photo.addPhoto&photo=#{@FILE_PATH;TYPE=MIME_TYPE}&photo_name=#{BASE_FILE_NAME}
Uploads a photo on behalf of the user.
Yanıt
Object
(
    [api] => Object
        (
            [total] => 0
            [pages] => 0
            [current_page] => 0
        )

    [output] => Object
        (
            [original] => http://www.okeyruyamm.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d.jpg
            [75px] => http://www.okeyruyamm.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_75.jpg
            [100px] => http://www.okeyruyamm.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_100.jpg
            [150px] => http://www.okeyruyamm.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_150.jpg
            [240px] => http://www.okeyruyamm.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_240.jpg
            [500px] => http://www.okeyruyamm.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_500.jpg
            [1024px] => http://www.okeyruyamm.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_1024.jpg
        )

)
getPhotos
GET /api.php?method=photo.getPhotos&user_id=#{USER_ID}
Bir kullanıcı için tüm fotoğrafları alın. #{USER_ID} bilgileri alınamıyorsa bir daha çevrimiçi olduğunda alınacak.
Yanıt
Object
(
    [api] => Object
        (
            [total] => 1
            [pages] => 0
            [current_page] => 0
        )

    [output] => Array
        (
            [0] => Object
                (
                    [photo_100px] => http://www.okeyruyamm.com/file/pic/photo/c81e728d9d4c2f636f067f89cc14862c_100.jpg
                    [photo_240px] => http://www.okeyruyamm.com/file/pic/photo/c81e728d9d4c2f636f067f89cc14862c_240.jpg
                    [photo_original] => http://www.okeyruyamm.com/file/pic/photo/c81e728d9d4c2f636f067f89cc14862c.jpg
                )

        )

)
user
getUser
GET /api.php?method=user.getUser&user_id=#{USER_ID}
Kullanıcı hakkında bilgi almak için kullanıcı ID# den geçiş yap. Eğer #{USER_ID} geçilemiyorsa, bilgiler kullanıcı bir daha çevrimiçi olduğunda alınır.
Yanıt
Object
(
    [api] => Object
        (
            [total] => 0
            [pages] => 0
            [current_page] => 0
        )

    [output] => Object
        (
            [user_id] => 1
            [user_name] => john-doe
            [joined] => 1314109907
            [gender] => Male
            [country_iso] => US
            [full_name] => John Doe
            [email] => john.doe@site.com
            [photo_50px] => http://www.okeyruyamm.com/file/pic/user/2011/08/9d673759d1cf55c9cd0b0805dc32e68e_50.jpg
            [photo_50px_square] => http://www.okeyruyamm.com/file/pic/user/2011/08/9d673759d1cf55c9cd0b0805dc32e68e_50_square.jpg
            [photo_120px] => http://www.okeyruyamm.com/file/pic/user/2011/08/9d673759d1cf55c9cd0b0805dc32e68e_120.jpg
            [photo_original] => http://www.okeyruyamm.com/file/pic/user/2011/08/9d673759d1cf55c9cd0b0805dc32e68e.jpg
            [profile_url] => http://www.okeyruyamm.com/index.php?do=/john-doe/
        )

)