Kamis, 28 Januari 2010

Kumpulan XML Console 2

Manfa'atin script XML,misal pada Privat Message.

<message to="target@nimbuzz.com" type="chat"><body>Hallo!!</body></message>

Hasil :
Hallo!!

Nah Kalo kita copas sampai 3x Hasilnya :
Hallo!!
Hallo!!
Hallo!!

Gimana kalo lu copasnya sampe 100x Bisa marah2 tuh yang dikirim.. Wkwkwk. Itu hanya misalnya,jangan ditiru ye... Coz gak baek buat kesehatan mata :Dv
Udah dulu,mending maen XML yang laen aja tapi tetep mengasyikan...


Kirim SMS gratis

<iq type="set" id="Nimbuzz_Invite_SendSMS" to="invite.nimbuzz.com"><query iso_639_3_code="eng" fromName="hai apa kabar?" type="sms" xmlns="http://nimbuzz.com/protocol/inviteafriend"><phonenumber>+62</phonenumber></query></iq>


Keterangan :
1. fromName="hai apa kabar?" adalah pesan yang mau dikirim.
2. <phonenumber>+62</phonenumber> adalah nomer tujuan diawali kode area (+62)


Search ChatRoom

<iq type="set" id="Nimbuzz_SearchRooms" to="conference.nimbuzz.com"><query xmlns="jabber:iq:search"><set xmlns="http://jabber.org/protocol/rsm"><index>0</index><max>10</max></set><x type="get" xmlns="jabber:x:data"><field var="name"><value>nama_rum_yang_dicari</value></field><field var="include_password_protected"><value>true</value></field></x></query></iq>


Membuat ChatRoom NonAnonymous atau SemiAnonymous

<iq to="room@conference.nimbuzz.com" type="set" id="ownerconf"><query xmlns="http://jabber.org/protocol/muc#owner"><x xmlns="jabber:x:data" type="submit"><field var="FORM_TYPE" type="hidden"><value>http://jabber.org/protocol/muc#roomconfig</value></field><field var="muc#roomconfig_roomname" type="text-single"><value>nama room</value></field><field var="muc#roomconfig_persistentroom" type="boolean"><value>1</value></field><field var="muc#roomconfig_publicroom" type="boolean"><value>1</value></field><field var="muc#roomconfig_anonymity" type="list-single"><value>nonanonymous</value></field><field var="muc#roomconfig_maxusers" type="list-single"><value>30</value></field><field var="logging_format" type="list-single"><value>html</value></field></x></query></iq>


Kunci :
;<field var="muc#roomconfig_anonymity" type="list-single"><value>nonanonymous</value></field>

Yaitu dengan merubah value menjadi "nonanonymous" atau "semianonymous"


Membuat ChatRoom Berpassword

<iq to="room@conference.nimbuzz.com" type="set" id="ownerconf"><query xmlns="http://jabber.org/protocol/muc#owner"><x xmlns="jabber:x:data" type="submit"><field var="FORM_TYPE" type="hidden"><value>http://jabber.org/protocol/muc#roomconfig</value></field><field var="muc#roomconfig_roomname" type="text-single"><value>nama room</value></field><field var="muc#roomconfig_persistentroom" type="boolean"><value>1</value></field><field var="muc#roomconfig_publicroom" type="boolean"><value>1</value></field><field var="muc#roomconfig_passwordprotectedroom" type="boolean"><value>1</value></field><field var="muc#roomconfig_roomsecret" type="text-single"><value>isi password</value></field><field var="muc#roomconfig_anonymity" type="list-single"><value>nonanonymous</value></field><field var="muc#roomconfig_maxusers" type="list-single"><value>30</value></field><field var="logging_format" type="list-single"><value>html</value></field></x></query></iq>


Owner Set(affiliasi: owner,admin,banned dll)

<iq to="room@conference.nimbuzz.com" type="set" id="admin_modify"><query xmlns="http://jabber.org/protocol/muc#admin"><item jid="@nimbuzz.com" affiliation="none"/></query></iq>


Copy All Code

Semoga bermanfaat, dan harapan gue semakin bertambah kreatifitas kita.

Tidak ada komentar: