Skip to content

Commit

Permalink
1.0.27
Browse files Browse the repository at this point in the history
- Kullanıcı takipçi ve takip ettiklerini getirme eklendi
- Login olan kullanıcının device id otomatik değişiyor böylece bir hesap banlanınca diğer hesap engel yemiyor.
- SSS eklendi
  • Loading branch information
Hasokeyk committed Jan 5, 2022
1 parent 63d3a5d commit b55760d
Show file tree
Hide file tree
Showing 10 changed files with 238 additions and 52 deletions.
48 changes: 29 additions & 19 deletions README-TR.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@

https://www.patreon.com/hasokeyk

## SIKÇA SORULAN SORULAR
<a href="https://github.com/hasokeyk/instagram/blob/docs/tr/sikca-sorulan-sorular.md.md">SSS'YE GİT</a>

<!-- TABLE OF CONTENTS -->
<details open="open">
<summary><h2 style="display: inline-block">Başlıklar</h2></summary>
Expand All @@ -45,7 +48,7 @@ https://www.patreon.com/hasokeyk
<a href="#kullanmaya-başlayın">Kullanmaya Başlayın</a>
<ul>
<li><a href="#gereksinimler">Gereksinimler</a></li>
<li><a href="#kurulum">Kurulum</a></li>
<li><a href="#yetkilendirme">Yetkilendirme</a></li>
</ul>
</li>
<li><a href="#kullanım">Kullanım</a></li>
Expand Down Expand Up @@ -73,7 +76,11 @@ Lütfen burayı dikkatle okunuyun.
- Bilgisayarınızda "composer" uygulaması kurulu olması gerekmektedir. Kurulum için https://getcomposer.org/download/
- PHP 7.4 ve üstü

### Kurulum
### Yetkilendirme

Aşağıdaki dosya ve klasörleri chmod 777 ile yetkilendirin.

`/vendor/hasokeyk/`

## Composer ile kurulum

Expand Down Expand Up @@ -209,23 +216,26 @@ paylaşımlarını getirmek için get_user_posts('hasokeyk') yazmanız yeterlidi

## Kullanıcı İşlemleri

| İşlemler | Çalışıyor | Örnek Dosya |
| ------------- | ------------- | ------------- |
| Kullanıcı Girişi | :heavy_check_mark: | [instagram-user-login.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-login.php) |
| iki Adımlı Kullanıcı Girişi | :heavy_check_mark: | [iinstagram-user-two-factor-login.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-two-factor-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/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-my-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/user/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/user/instagram-user-follow.php) |
| Kullanıcı Takipten Çıkma | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/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/user/instagram-user-follow.php) |
| Kullanıcı Bildirim Listesi Getirme | :heavy_check_mark: | [instagram-user-my-notification.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-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) |
| İşlemler | Çalışıyor | Örnek Dosya |
|-----------------------------------------------------------------| ------------- |----------------------------------------------------------------------------------------------------------------------------------------------|
| Kullanıcı Girişi | :heavy_check_mark: | [instagram-user-login.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-login.php) |
| iki Adımlı Kullanıcı Girişi | :heavy_check_mark: | [iinstagram-user-two-factor-login.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-two-factor-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/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-my-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/user/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/user/instagram-user-follow.php) |
| Kullanıcı Takipten Çıkma | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/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/user/instagram-user-follow.php) |
| Kullanıcı Bildirim Listesi Getirme | :heavy_check_mark: | [instagram-user-my-notification.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-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) |
| Giriş Yapan Kullanıcının 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) |
| Giriş Yapan Kullanıcının Takip Ettiklerini Getirme | :heavy_check_mark: | [instagram-user-my-followers.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-following.php) |
| Herhangi Bir Kullanıcının Takipçilerini Getirme | :heavy_check_mark: | [instagram-user-my-followers.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-followers.php) |
| Herhangi Bir Kullanıcının Takip Ettiklerini Getirme | :heavy_check_mark: | [instagram-user-my-followers.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-following.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
Expand Down
46 changes: 28 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
| ETH | 0x2091be5b1840b10a841376c366ec0475771b4ec8 |
| BTC | 12Set9KZGXWD64pbeGsdqZCJZofxyK77LP |

## FAQ
<a href="https://github.com/hasokeyk/instagram/blob/docs/en/faq.md">GO FAQ</a>

<!-- TABLE OF CONTENTS -->
<details open="open">
<summary><h2 style="display: inline-block">Contents</h2></summary>
Expand Down Expand Up @@ -70,7 +73,11 @@ Please read carefully.
- You must have to "composer" application on your PC. For installation https://getcomposer.org/download/
- PHP 7.4 or above

### Setup
### File permissions

Give permission to the following files and folders with chmod 777.

`/vendor/hasokeyk/`

## Setup via Composer

Expand Down Expand Up @@ -205,24 +212,27 @@ If you want another accounts posts get_user_posts('hasokeyk') please use this.

## User operations

| Operation | Working | Example File |
|------------------------------------------------| ------------- | ------------- |
| Login | :heavy_check_mark: | [instagram-user-login.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-login.php) |
| 2-Factor Auth Login | :heavy_check_mark: | [instagram-user-two-factor-login.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-two-factor-login.php) |
| Login width proxy | :heavy_check_mark: | [instagram-user-login-with-proxy.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-login-with-proxy.php) |
| Getting posts of logged in account | :heavy_check_mark: | [instagram-user-info.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-info.php) |
| Getting statictics of logged in account | :heavy_check_mark: | [instagram-user-statistics.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-statistics.php) |
| Operation | Working | Example File |
|------------------------------------------------| ------------- |----------------------------------------------------------------------------------------------------------------------------------------------------|
| Login | :heavy_check_mark: | [instagram-user-login.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-login.php) |
| 2-Factor Auth Login | :heavy_check_mark: | [instagram-user-two-factor-login.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-two-factor-login.php) |
| Login width proxy | :heavy_check_mark: | [instagram-user-login-with-proxy.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-login-with-proxy.php) |
| Getting posts of logged in account | :heavy_check_mark: | [instagram-user-info.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-info.php) |
| Getting statictics of logged in account | :heavy_check_mark: | [instagram-user-statistics.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-statistics.php) |
| Getting least Viewed of logged in account | :heavy_check_mark: | [instagram-user-least-interacted-with.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-least-interacted-with.php) |
| Getting most Viewed Users by Logged In | :heavy_check_mark: | [instagram-user-my-most-seen-in-feed.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-least-interacted-with.php) |
| Changing profile image | :heavy_check_mark: | [instagram-user-change-profil-pic.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-change-profil-pic.php) |
| Follow an account | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-follow.php) |
| Unffollow an account | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-follow.php) |
| Unfollow the Account Itself | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-follow.php) |
| Getting notification list of logged in account | :heavy_check_mark: | [instagram-user-my-notification.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-notification.php) |
| Getting message request of logged in account | :heavy_check_mark: | [instagram-user-my-pending-inbox.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-pending-inbox.php) |
| Getting message inbox of logged in account | :heavy_check_mark: | [instagram-user-my-inbox.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-inbox.php) |
| Getting Account Followers | :heavy_check_mark: | [instagram-user-my-followers.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-followers.php) |
| Getting Post | :heavy_check_mark: | [instagram-user-get-posts.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-get-posts.php) |
| Getting most Viewed Users by Logged In | :heavy_check_mark: | [instagram-user-my-most-seen-in-feed.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-least-interacted-with.php) |
| Changing profile image | :heavy_check_mark: | [instagram-user-change-profil-pic.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-change-profil-pic.php) |
| Follow an account | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-follow.php) |
| Unffollow an account | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-follow.php) |
| Unfollow the Account Itself | :heavy_check_mark: | [instagram-user-follow.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-follow.php) |
| Getting notification list of logged in account | :heavy_check_mark: | [instagram-user-my-notification.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-notification.php) |
| Getting message request of logged in account | :heavy_check_mark: | [instagram-user-my-pending-inbox.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-pending-inbox.php) |
| Getting message inbox of logged in account | :heavy_check_mark: | [instagram-user-my-inbox.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-inbox.php) |
| Getting my account followers | :heavy_check_mark: | [instagram-user-my-followers.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-followers.php) |
| Getting my account gollowing | :heavy_check_mark: | [instagram-user-my-followers.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-my-following.php) |
| Getting user followers | :heavy_check_mark: | [instagram-user-my-followers.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-followers.php) |
| Getting user following | :heavy_check_mark: | [instagram-user-my-followers.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-following.php) |
| Getting Post | :heavy_check_mark: | [instagram-user-get-posts.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-get-posts.php) |


## Post share operations
Expand Down
22 changes: 22 additions & 0 deletions docs/en/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Frequently Asked Questions

### I'm getting "Login Fail" Error
<details>
<summary>Solution</summary>

Check the items below one by one.

1- Check your user and password

2- If you are using a localhost or server, make sure its ip is in Turkey. If your last login was in Turkey and your server is abroad, Instagram blocks the login for security and sends you a notification. You can see this information by entering it from your phone or browser.
You can use proxy for solution. BKN : [instagram-user-login-with-proxy.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-login-with-proxy.php)
</details>

I get Error ### "mkdir"
<details>
<summary>Solution</summary>

Give the following folder chmod 777 authority for all files and folders.

`vendor/hasokeyk`
</details>
22 changes: 22 additions & 0 deletions docs/tr/sikca-sorulan-sorular.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Sıkça sorulan sorular

### "Login Fail" Hatası alıyorum
<details>
<summary>Çözüm</summary>

Aşağıda maddeleri teker teker kontrol edin.

1- Kullanıcı ve şifrenizi kontrol edin

2- Localhost veya sunucu kullanıyorsanız ipsinin Türkiye içinde olmasına dikkat edin. Son girişiniz Türkiye içinde olduysa ve sunucunuz yurtdışında ise instagram güvenlik için oturum açmayı engeller ve size bildirim yollar. Bu bilgirimi telefonunuzdan veya tarayıcınızdan girerek görebilirsiniz.
Çözüm için proxy kullanabilirsiniz. BKN : [instagram-user-login-with-proxy.php](https://github.com/Hasokeyk/instagram/blob/main/examples/user/instagram-user-login-with-proxy.php)
</details>

### "mkdir" Hatası alıyorum
<details>
<summary>Çözüm</summary>

Aşağıdaki klasöre tüm dosya ve klasörler için chmod 777 yetkisi verin.

`vendor/hasokeyk`
</details>
20 changes: 20 additions & 0 deletions examples/user/instagram-user-followers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?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){
$user = $instagram->user->get_user_followers();
print_r($user);
}
else{
echo 'Login Fail';
}
20 changes: 20 additions & 0 deletions examples/user/instagram-user-following.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?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){
$user = $instagram->user->get_user_following();
print_r($user);
}
else{
echo 'Login Fail';
}
Loading

0 comments on commit b55760d

Please sign in to comment.