ig_api 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +17 -7
- data/bin/console +1 -1
- data/{IgApi.gemspec → ig_api.gemspec} +3 -3
- data/lib/{IgApi → ig_api}/http.rb +5 -5
- data/lib/{IgApi → ig_api}/user.rb +2 -2
- data/lib/ig_api/version.rb +3 -0
- data/lib/ig_api.rb +11 -0
- metadata +14 -14
- data/lib/IgApi/version.rb +0 -3
- data/lib/IgApi.rb +0 -11
- /data/lib/{IgApi → ig_api}/account.rb +0 -0
- /data/lib/{IgApi → ig_api}/configuration.rb +0 -0
- /data/lib/{IgApi → ig_api}/constants.rb +0 -0
- /data/lib/{IgApi → ig_api}/device.rb +0 -0
- /data/lib/{IgApi → ig_api}/feed.rb +0 -0
- /data/lib/{IgApi → ig_api}/relationship.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc8cf14005561039a3e6360eb2b424c288ac9326aeaa66d4ca3076ac5209c820
|
4
|
+
data.tar.gz: a8b446caf588d41ae4ddcd6f654d7f4598675dbe5f09fb28a573c59987a07dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45ab88b0becd54ef5a18299ee7dce50810574c8c5b232771399fe09467b162955cb6c0a7a8fcff3febb394823c2b738f85aafae1a6ed4b1c5a22efd9418b8f32
|
7
|
+
data.tar.gz: 9e72c2327dd300c5654074019a892a7aa3d3600ecbf47deaeeab3787c718b14ef4f1339e5dba86534c2d48a43ef7d47ff75d7afa4baf9a25ca707421c45d08c4
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,31 +1,41 @@
|
|
1
1
|
# Instagram::API
|
2
2
|
|
3
|
-
Welcome to Instagram-API gem!
|
3
|
+
Welcome to Instagram-API gem! implemented from [huttarichard/instagram-private-api](https://github.com/huttarichard/instagram-private-api)
|
4
4
|
## Installation
|
5
5
|
|
6
6
|
Add this line to your application's Gemfile:
|
7
7
|
|
8
8
|
```ruby
|
9
|
-
gem '
|
9
|
+
gem 'ig_api'
|
10
10
|
```
|
11
11
|
|
12
12
|
And then execute:
|
13
13
|
|
14
14
|
$ bundle
|
15
15
|
|
16
|
-
Or install it yourself as:
|
17
|
-
|
18
|
-
$ gem install instagram-private-api
|
19
|
-
|
20
16
|
## Usage
|
21
17
|
- Login _for new user_
|
22
18
|
```ruby
|
23
|
-
account =
|
19
|
+
account = IgApi::Account.new
|
24
20
|
|
25
21
|
user = account.login 'username', 'password' #login
|
26
22
|
user.feed.timeline_media #timeline media
|
27
23
|
search = user.search_for_user 'instagram' #search
|
28
24
|
user.relationship.create search.id #follow
|
25
|
+
```
|
26
|
+
- Rails
|
27
|
+
```ruby
|
28
|
+
require 'IgApi'
|
29
|
+
|
30
|
+
class HomeController < ApplicationController
|
31
|
+
def index
|
32
|
+
account = IgApi::Account.new
|
33
|
+
|
34
|
+
@user = account.login ENV['INSTAGRAM_USER'], ENV['INSTAGRAM_PASSWORD']
|
35
|
+
render :json => @user
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
29
39
|
```
|
30
40
|
## Development
|
31
41
|
|
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require '
|
4
|
+
require 'ig_api/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'ig_api'
|
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ['vicoerv']
|
10
10
|
spec.email = ['vicoerv@gmail.com']
|
11
11
|
|
12
|
-
spec.summary = 'Instagram private api
|
13
|
-
spec.description =
|
12
|
+
spec.summary = 'Instagram private api'
|
13
|
+
spec.description = 'implemented from huttarichard/instagram-private-api'
|
14
14
|
spec.homepage = 'http://www.vicoervanda.com'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'ig_api/version'
|
4
4
|
require 'openssl'
|
5
5
|
require 'net/http'
|
6
6
|
require 'json'
|
7
|
-
require '
|
8
|
-
require '
|
9
|
-
require '
|
10
|
-
require '
|
7
|
+
require 'ig_api/user'
|
8
|
+
require 'ig_api/account'
|
9
|
+
require 'ig_api/feed'
|
10
|
+
require 'ig_api/configuration'
|
11
11
|
|
12
12
|
module IgApi
|
13
13
|
class Http
|
data/lib/ig_api.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ig_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vicoerv
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
-
description:
|
55
|
+
description: implemented from huttarichard/instagram-private-api
|
56
56
|
email:
|
57
57
|
- vicoerv@gmail.com
|
58
58
|
executables: []
|
@@ -66,22 +66,22 @@ files:
|
|
66
66
|
- CODE_OF_CONDUCT.md
|
67
67
|
- Gemfile
|
68
68
|
- Gemfile.lock
|
69
|
-
- IgApi.gemspec
|
70
69
|
- LICENSE.txt
|
71
70
|
- README.md
|
72
71
|
- Rakefile
|
73
72
|
- bin/console
|
74
73
|
- bin/setup
|
75
|
-
-
|
76
|
-
- lib/
|
77
|
-
- lib/
|
78
|
-
- lib/
|
79
|
-
- lib/
|
80
|
-
- lib/
|
81
|
-
- lib/
|
82
|
-
- lib/
|
83
|
-
- lib/
|
84
|
-
- lib/
|
74
|
+
- ig_api.gemspec
|
75
|
+
- lib/ig_api.rb
|
76
|
+
- lib/ig_api/account.rb
|
77
|
+
- lib/ig_api/configuration.rb
|
78
|
+
- lib/ig_api/constants.rb
|
79
|
+
- lib/ig_api/device.rb
|
80
|
+
- lib/ig_api/feed.rb
|
81
|
+
- lib/ig_api/http.rb
|
82
|
+
- lib/ig_api/relationship.rb
|
83
|
+
- lib/ig_api/user.rb
|
84
|
+
- lib/ig_api/version.rb
|
85
85
|
homepage: http://www.vicoervanda.com
|
86
86
|
licenses:
|
87
87
|
- MIT
|
@@ -106,5 +106,5 @@ rubyforge_project:
|
|
106
106
|
rubygems_version: 2.7.6
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
|
-
summary: Instagram private api
|
109
|
+
summary: Instagram private api
|
110
110
|
test_files: []
|
data/lib/IgApi/version.rb
DELETED
data/lib/IgApi.rb
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|