This repository was archived by the owner on Apr 19, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +69
-0
lines changed Expand file tree Collapse file tree 3 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Twitter-data-class
2
+ Twitter üzerinden takipçi sayısı, twet sayııs, takip sayısı ve son postu rahatlık ile çekebilirsiniz.
3
+ # twitter2.php
4
+
5
+ <img src =" https://i.imgyukle.com/2020/09/27/55QtLU.png " width =" 450 " height =" 300 " >
6
+
7
+ twitter.php'yi include ettikten sonra bu kodun aynısını kullanarak takipçi sayısı vs çekebilirsiniz.
8
+
9
+ ` kullanıcı_adı ` kısmına verileri çekmek istediğiniz hesabı giriniz.<br >
10
+ Yeni bir eklenti eklemek isterseniz şunu kullanabilirsiniz.
11
+ * Örnek:* <br >
12
+ ` echo "takipçi sayısı : " .$tweetusers->following(); `
13
+
14
+
15
+ # improvements
16
+ * Geliştirmeler için ` Pull requests ` kabul edilir...*
17
+ * ` Pull requests ` are accepted for improvements.*
18
+
19
+ # contact
20
+ Sorunuz olur ise [ bu telegram adresinden] ( http://t.me/tioxxs ) bana ulaşabilirsiniz.
21
+ Beni [ twitter] ( https://twitter.com/TioxsUsta ) 'dan takip etmeyi unutmayınız...
Original file line number Diff line number Diff line change
1
+ <?php
2
+ class Twitter {
3
+ var $ tweetusers = null ;
4
+ var $ xml = null ;
5
+ var $ QWE ;
6
+
7
+ function __construct ($ tweetusers , $ QWE = true ) {
8
+ $ this -> tweetusers = $ tweetusers ;
9
+ $ this -> QWE = $ QWE ;
10
+ $ this -> _connect ();
11
+ }
12
+
13
+ private function _connect () {
14
+ if (!@$ this -> xml = simplexml_load_file ('https://dev.twitter.com/docs/api/1.1/overview ' . $ this -> tweetusers )) {
15
+ if ($ this -> QWE ) {
16
+ die ("Twitter::_connect() Hata: `<em> {$ this ->tweetusers }</em>` öle kullanıcı yok wala " );
17
+ } else {
18
+ return false ;
19
+ }
20
+ }
21
+ }
22
+
23
+ public function tweet () {
24
+ return $ this -> xml -> statuses_count [0 ];
25
+ }
26
+
27
+ public function follower () {
28
+ return $ this -> xml -> followers_count [0 ];
29
+ }
30
+
31
+ public function following () {
32
+ return $ this -> xml -> friends_count [0 ];
33
+ }
34
+
35
+ public function sonpost () {
36
+ return $ this -> xml -> status -> text ;
37
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ include "twitter.php " ;
4
+
5
+ $ tweetusers = new Twitter(elanurtw)
6
+
7
+ echo "toplamsayı: " .$ tweetusers ->tweet ();
8
+ echo "<br/> " ;
9
+ echo "takipçi sayısı : " .$ tweetusers ->follower ();
10
+
11
+ ?>
You can’t perform that action at this time.
0 commit comments