Skip to content

Commit 7d9cee5

Browse files
authored
Update
1 parent 05473bc commit 7d9cee5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Disclaimer ⚠: This API is private. Means that instagram has not documented or
3131
In your app build.gradle
3232
```groovy
3333
dependencies {
34-
implementation 'com.github.ErrorxCode:EasyInsta:v2.0'
34+
implementation 'com.github.ErrorxCode:EasyInsta:2.1'
3535
}
3636
```
3737

@@ -171,6 +171,17 @@ instagram.getProfilePicUrl("username").addOnSuccessListener(new Task.OnSuccessLi
171171
}
172172
});
173173
```
174+
175+
### Serialization & Deserialization.
176+
You can also save `Instagram` object instance so you don't have to login each time program runs. (Serialization)
177+
```
178+
Instagram instagram = new Instagram("username","password");
179+
instagram.saveInstance(getCacheDir()); // Pass the cache direcoty of your app.
180+
```
181+
and then use that saved object everytime. (Deserialization)
182+
```
183+
Instagram instagram = Instagram.loadInstance(getCacheDir());
184+
```
174185
## Documentation
175186

176187
[Java docs](https://errorxcode.github.io/docs/easyinsta/index.html)

0 commit comments

Comments
 (0)