From 51fc77a4815bb33b2c9bc292bb37b44ee588d755 Mon Sep 17 00:00:00 2001 From: Tanish Date: Sun, 3 Dec 2023 22:19:32 +0530 Subject: [PATCH] Delete guides directory --- guides/Implementing a new request.md | 20 -------------------- guides/Instagram request capturing.md | 14 -------------- 2 files changed, 34 deletions(-) delete mode 100644 guides/Implementing a new request.md delete mode 100644 guides/Instagram request capturing.md diff --git a/guides/Implementing a new request.md b/guides/Implementing a new request.md deleted file mode 100644 index 3c089b5..0000000 --- a/guides/Implementing a new request.md +++ /dev/null @@ -1,20 +0,0 @@ -# Implementing a new request - -#### Prerequisite: [Instagram request capturing](Instagram%20request%20capturing.md) - -We have to experiment and see the least amount of data we need to send in order to get a proper response, here we had to send no more than the default headers and no body at all. -So let's move on to write the code for this. All requests are implemented in the `requests` directory and this is an `accounts` request so we'll go into that sub-directory and add the request. - -`JIA/lib/src/main/java/io/github/taz03/jia/requests/accounts/CurrentUserRequest.java` -```java -// Extend `InstagramGetRequest` because it was a GET request, -// and use `UserResponse` as response because that is what it responds, -// we might need to create custom responses stitching multiple models together in some cases -public final class CurrentUserRequest extends InstagramGetRequest { - public CurrentUserRequest() { - // Here we are just configuring in the URL because the body was empty and - // there are no more headers to add other than the default ones - super(UserResponse.class, "/api/v1/accounts/current_user/"); - } -} -``` diff --git a/guides/Instagram request capturing.md b/guides/Instagram request capturing.md deleted file mode 100644 index bb7e991..0000000 --- a/guides/Instagram request capturing.md +++ /dev/null @@ -1,14 +0,0 @@ -# Instagram request capturing - -First, you must set up Instagram SSL pinning bypass to see the requests sent by the Instagram mobile app, [guide here](https://github.com/Eltion/Instagram-SSL-Pinning-Bypass). - -![image](https://github.com/Taz03/JIA/assets/73871477/62e57422-8912-48ea-9b0a-7272c165a41e) -Then you should see all the requests going out in real-time, and here you can see what action in the app leads to which requests. - -Then you will need to replicate that request for example, let's try to replicate the `/accounts/current_user` GET request. - -![image](https://github.com/Taz03/JIA/assets/73871477/7b02b0f1-a8ec-44e8-ac92-eb120094c10b) - -Try and experiment to see what query does what, and which ones are ignored. - -Read next: [Adding a new request](Implementing%20a%20new%20request.md)