Skip to content

Commit

Permalink
1.0.15
Browse files Browse the repository at this point in the history
- Readme düzenlendi
  • Loading branch information
Hasokeyk committed Apr 14, 2021
1 parent 982a802 commit af98cb9
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 34 deletions.
54 changes: 27 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,53 +160,53 @@ paylaşımlarını getirmek için get_user_posts('hasokeyk') yazmanız yeterlidi
| Kullanıcı Girişi | :heavy_check_mark: | [instagram-user-login.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-login.php) |
| Giriş Yapmış Kullanıcı Bilgisi Getirme | :heavy_check_mark: | [instagram-user-info.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-info.php) |
| Giriş Yapmış Kullanıcı İstatistik Getirme | :heavy_check_mark: | [instagram-user-statistics.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-statistics.php) |
| Giriş Yapmış Kullanıcının En Az Etkileşimde Olduğu Kullanıcılar | :heavy_check_mark: | [instagram-user-least-interacted-with.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Giriş Yapmış Kullanıcının En Çok Gördüğü Kullanıcılar | :heavy_check_mark: | [instagram-user-me-most-seen-in-feed.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Giriş Yapmış Kullanıcının En Az Etkileşimde Olduğu Kullanıcılar | :heavy_check_mark: | [instagram-user-least-interacted-with.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-least-interacted-with.php) |
| Giriş Yapmış Kullanıcının En Çok Gördüğü Kullanıcılar | :heavy_check_mark: | [instagram-user-me-most-seen-in-feed.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-least-interacted-with.php) |
| Profil Resmi Değiştirme | :heavy_check_mark: | [instagram-user-change-profil-pic.php](https://github.com/Hasokeyk/instagram/blob/main/examples/instagram-user-change-profil-pic.php) |
| Kullanıcı Takip Etme | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/instagram-user-follow.php) |
| Kullanıcı Takipten Çıkma | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/instagram-user-follow.php) |
| Kullanıcının Kendisini Takipten Çıkma | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/instagram-user-follow.php) |
| Kullanıcı Bildirim Listesi Getirme | :heavy_check_mark: | [instagram-user-me-notification.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Kullanıcı Mesaj İsteklerini Getirme | :heavy_check_mark: | [instagram-user-my-pending-inbox.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Kullanıcı Mesaj Kutusunu Getirme | :heavy_check_mark: | [instagram-user-my-inbox.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Kullanıcı Takipçilerini Getirme | :heavy_check_mark: | [instagram-user-my-followers.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Paylaşım Getirme | :heavy_check_mark: | [instagram-user-get-posts.php](https://github.com/Hasokeyk/instagram/blob/main/examples/instagram-user-get-posts.php) |
| Kullanıcı Bildirim Listesi Getirme | :heavy_check_mark: | [instagram-user-me-notification.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-me-notification.php) |
| Kullanıcı Mesaj İsteklerini Getirme | :heavy_check_mark: | [instagram-user-my-pending-inbox.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-pending-inbox.php) |
| Kullanıcı Mesaj Kutusunu Getirme | :heavy_check_mark: | [instagram-user-my-inbox.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-inbox.php) |
| Kullanıcı Takipçilerini Getirme | :heavy_check_mark: | [instagram-user-my-followers.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-followers.php) |
| Paylaşım Getirme | :heavy_check_mark: | [instagram-user-get-posts.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-get-posts.php) |


## Paylaşım İşlemleri

| İşlemler | Çalışıyor | Örnek Dosya |
| ------------- | ------------- | ------------- |
| Paylaşım İstatistikleri Getirme | :heavy_check_mark: | [instagram-user-get-posts-statistics.php](https://github.com/Hasokeyk/instagram/blob/main/examples/instagram-user-get-posts-statistics.php) |
| Görsel Paylaşma | :x: | [HAZIRLANIYOR](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Video Paylaşma | :x: | [HAZIRLANIYOR](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Story Paylaşma | :x: | [HAZIRLANIYOR](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Carousel Paylaşma | :x: | [HAZIRLANIYOR](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Paylaşım Beğenme | :heavy_check_mark: | [instagram-media-like.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Paylaşım Beğenmekten Çıkma | :heavy_check_mark: | [instagram-media-unlike.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Paylaşım Kayıt Etme | :heavy_check_mark: | [instagram-media-save.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Paylaşım Kayıt Etmekten Çıkma | :heavy_check_mark: | [instagram-media-unsave.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Paylaşıma Yorum Yazma | :heavy_check_mark: | [instagram-media-send-comment.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Paylaşıma Yorum Silme | :heavy_check_mark: | [instagram-media-del-comment.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Paylaşım Mesaj Olarak Yollama | :heavy_check_mark: | [instagram-media-send-media-inbox.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Paylaşım İstatistikleri Getirme | :heavy_check_mark: | [instagram-user-get-posts-statistics.php](https://github.com/Hasokeyk/instagram/blob/main/examples/media/instagram-user-get-posts-statistics.php) |
| Görsel Paylaşma | :x: | [HAZIRLANIYOR](https://github.com/Hasokeyk/instagram/blob/main/examples/media/) |
| Video Paylaşma | :x: | [HAZIRLANIYOR](https://github.com/Hasokeyk/instagram/blob/main/examples/media/) |
| Story Paylaşma | :x: | [HAZIRLANIYOR](https://github.com/Hasokeyk/instagram/blob/main/examples/media/) |
| Carousel Paylaşma | :x: | [HAZIRLANIYOR](https://github.com/Hasokeyk/instagram/blob/main/examples/media/) |
| Paylaşım Beğenme | :heavy_check_mark: | [instagram-media-like.php](https://github.com/Hasokeyk/instagram/blob/main/examples/media/instagram-media-like.php) |
| Paylaşım Beğenmekten Çıkma | :heavy_check_mark: | [instagram-media-unlike.php](https://github.com/Hasokeyk/instagram/blob/main/examples/media/instagram-media-unlike.php) |
| Paylaşım Kayıt Etme | :heavy_check_mark: | [instagram-media-save.php](https://github.com/Hasokeyk/instagram/blob/main/examples/media/instagram-media-save.php) |
| Paylaşım Kayıt Etmekten Çıkma | :heavy_check_mark: | [instagram-media-unsave.php](https://github.com/Hasokeyk/instagram/blob/main/examples/media/instagram-media-unsave.php) |
| Paylaşıma Yorum Yazma | :heavy_check_mark: | [instagram-media-send-comment.php](https://github.com/Hasokeyk/instagram/blob/main/examples/media/instagram-media-send-comment.php) |
| Paylaşıma Yorum Silme | :heavy_check_mark: | [instagram-media-del-comment.php](https://github.com/Hasokeyk/instagram/blob/main/examples/media/instagram-media-del-comment.php) |
| Paylaşım Mesaj Olarak Yollama | :heavy_check_mark: | [instagram-media-send-media-inbox.php](https://github.com/Hasokeyk/instagram/blob/main/examples/media/instagram-media-send-media-inbox.php) |

## Mesajlaşma İşlemleri

| İşlemler | Çalışıyor | Örnek Dosya |
| ------------- | ------------- | ------------- |
| Yazı Olarak Mesaj Atma | :heavy_check_mark: | [instagram-users-send-inbox.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Link Olarak Mesaj Atma | :x: | [HAZIRLANIYOR](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Kalp Atma | :heavy_check_mark: | [instagram-users-send-inbox.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Görsel Atma | :heavy_check_mark: | [instagram-users-send-inbox.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Yazı Olarak Mesaj Atma | :heavy_check_mark: | [instagram-users-send-inbox.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-users-send-inbox.php) |
| Link Olarak Mesaj Atma | :x: | [HAZIRLANIYOR](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-login.php) |
| Kalp Atma | :heavy_check_mark: | [instagram-users-send-inbox.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-users-send-inbox.php) |
| Görsel Atma | :heavy_check_mark: | [instagram-users-send-inbox.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-users-send-inbox.php) |

## Akıllı İşlemler

| İşlemler | Çalışıyor | Örnek Dosya |
| ------------- | ------------- | ------------- |
| Sahte Takipçi Tespiti | :heavy_check_mark: | [instagram-smart-get-fake-followers-profile.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Sahte Takip Edilen Tespiti | :heavy_check_mark: | [instagram-smart-get-fake-following-profile.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Takip Etmeniz Gereken Hesaplar | :heavy_check_mark: | [instagram-smart-get-my-must-follow.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Gizli Takipçileriniz | :heavy_check_mark: | [instagram-smart-get-my-secret-followers.php](https://github.com/Hasokeyk/instagram/tree/main/examples) |
| Sahte Takipçi Tespiti | :heavy_check_mark: | [instagram-smart-get-fake-followers-profile.php](https://github.com/Hasokeyk/instagram/blob/main/examples/smart/instagram-smart-get-fake-followers-profile.php) |
| Sahte Takip Edilen Tespiti | :heavy_check_mark: | [instagram-smart-get-fake-following-profile.php](https://github.com/Hasokeyk/instagram/blob/main/examples/smart/instagram-smart-get-fake-following-profile.php) |
| Takip Etmeniz Gereken Hesaplar | :heavy_check_mark: | [instagram-smart-get-my-must-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/smart/instagram-smart-get-my-must-follow.php) |
| Gizli Takipçileriniz | :heavy_check_mark: | [instagram-smart-get-my-secret-followers.php](https://github.com/Hasokeyk/instagram/blob/main/examples/smart/instagram-smart-get-my-secret-followers.php) |

## Lisans

Expand Down
19 changes: 19 additions & 0 deletions examples/statistics/instagram-media-statistics.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

use instagram\instagram;

require "../../vendor/autoload.php";

$username = 'username';
$password = 'password';

$instagram = new instagram($username,$password);
$instagram->login->login();

$login = $instagram->login->login_control();
if($login){
$post = $instagram->statistics->get_post_insights('2546428212937660604');
print_r($post);
}else{
echo 'Login Fail';
}
2 changes: 1 addition & 1 deletion examples/user/instagram-user-my-pending-inbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

$login = $instagram->login->login_control();
if($login){
$user = $instagram->user->get_my_notification();
$user = $instagram->user->get_my_pending_inbox();
print_r($user);
}
else{
Expand Down
12 changes: 6 additions & 6 deletions src/instagram_statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ public function get_user_insights(){
}

public function get_post_insights($post_id = null){

$cache = $this->cache($post_id);
if($cache == false){
if($post_id != null){

$post_param = [
'surface' => 'post',
'doc_id' => '3808023159239182',
Expand All @@ -52,13 +52,13 @@ public function get_post_insights($post_id = null){
'strip_defaults' => 'true',
'query_params' => ('{"query_params":{"access_token":"","id":"'.$post_id.'"}}'),
];

$link = "https://i.instagram.com/api/v1/ads/graphql/";
$user_general_statistic = $this->request($link, 'POST', $post_param);

$user_general_statistic = json_decode($user_general_statistic['body']);
$user_general_statistic = $user_general_statistic->data->instagram_post_by_igid->inline_insights_node->metrics;

if($user_general_statistic != null){
$this->cache($post_id, $user_general_statistic);
}
Expand All @@ -73,7 +73,7 @@ public function get_post_insights($post_id = null){
else{
$user_general_statistic = $cache;
}

return $user_general_statistic;
}

Expand Down

0 comments on commit af98cb9

Please sign in to comment.