-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.php
86 lines (47 loc) · 1.48 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
require 'bionluk/init.php';
$bionluk = new Bionluk();
$data['firstname'] = "yenibirhesap";
$data['lastname'] ="test";
$data['username']= "myusernamebs23x";
$data['email'] = "readonlyworld2x12@gmail.com";
$data['password'] = "test123";
//$bionluk->register($data);
$key = "";
$bionluk->activation($key);
$data['email'] = "test@test.com";
$data['password'] = "test";
$bionluk->login($data['email'],$data['password']);
//$bionluk->update_basic_info("ahmet","bilardo","Burası başlık","brief","açıklama");
// CHAT İŞLEMLERİ
/*$messages = $bionluk->chat->getMessages();
$firstChat = $messages["conversations"][0];
$firstChat_id = $firstChat["c_uuid"];
$bionluk->chat->send("hello world",$firstChat_id);
*/
//all messages
$messages = $bionluk->chat->getMessages();
// UNREAD MESSAGES
$messages = $bionluk->chat->getMessages("unread");
//alternative
$messages = $bionluk->chat->unread();
// ARCHIVE MESSAGES
$messages = $bionluk->chat->getMessages("archive");
//alternative
$archive = $bionluk->chat->archive();
$username = "test";
// user chat set archive
$bionluk->chat->userArchive($username);
// user chat set no archive
$bionluk->chat->userNoArchive($username);
//İLAN İŞLEMLERİ
// tüm ilanlarımı getir
$bionluk->ads->getAll();
//aktif ilanları getir
$bionluk->ads->active();
//pasif ilanları getir
$bionluk->ads->passive();
// tamamlanması devam eden ilanları
$bionluk->ads->continue();
// onaylanmayan ilanları göster
$bionluk->ads->notConfirmed();