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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9292f2ff962726fafabe67de7ee16b3abd97f1dc53836b7331db79edd404ac9b
4
- data.tar.gz: 2a66aa6b459352cf51c749fee1469b2d6011dcd03b6179387b55df8acec9043b
3
+ metadata.gz: fc8cf14005561039a3e6360eb2b424c288ac9326aeaa66d4ca3076ac5209c820
4
+ data.tar.gz: a8b446caf588d41ae4ddcd6f654d7f4598675dbe5f09fb28a573c59987a07dff
5
5
  SHA512:
6
- metadata.gz: 454ce6eb3dff6db1437ac00d4a300b439605d993e024671c55a28c93137a805223b2195b362e7894e60ba3883eb8f74f6fdc89814aeeed250027618c163ef53b
7
- data.tar.gz: 13a190c79eb823f44aad17d90f1c0515c4ff908b3af7d3edf91daa5ae43ed52b24a11c378739ca880754d967ee36b931dc6156c557abd5a7e691b619636f1008
6
+ metadata.gz: 45ab88b0becd54ef5a18299ee7dce50810574c8c5b232771399fe09467b162955cb6c0a7a8fcff3febb394823c2b738f85aafae1a6ed4b1c5a22efd9418b8f32
7
+ data.tar.gz: 9e72c2327dd300c5654074019a892a7aa3d3600ecbf47deaeeab3787c718b14ef4f1339e5dba86534c2d48a43ef7d47ff75d7afa4baf9a25ca707421c45d08c4
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  .idea
2
2
  Gemfile.lock
3
3
  *.gem
4
+ Gemfile.lock
data/Gemfile CHANGED
@@ -2,5 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
- # Specify your gem's dependencies in IgApi-Api.gemspec
5
+ # Specify your gem's dependencies in ig_api-Api.gemspec
6
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ig_api (0.0.7)
4
+ ig_api (0.0.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,31 +1,41 @@
1
1
  # Instagram::API
2
2
 
3
- Welcome to Instagram-API gem! This Gem is implemented from [huttarichard/instagram-private-api](https://github.com/huttarichard/instagram-private-api) the best `Node-JS` Insgtagram private API
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 'instagram-private-api'
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 = Instagram::Account.new
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
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "IgApi/Api"
4
+ require "ig_api/Api"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -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 'IgApi/version'
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, implemented from huttarichard/instagram-private-api'
13
- spec.description = spec.summary
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 'IgApi/version'
3
+ require 'ig_api/version'
4
4
  require 'openssl'
5
5
  require 'net/http'
6
6
  require 'json'
7
- require 'IgApi/user'
8
- require 'IgApi/account'
9
- require 'IgApi/feed'
10
- require 'IgApi/configuration'
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
@@ -1,5 +1,5 @@
1
- require 'IgApi/device'
2
- require 'IgApi/constants'
1
+ require 'ig_api/device'
2
+ require 'ig_api/constants'
3
3
 
4
4
  module IgApi
5
5
  class User
@@ -0,0 +1,3 @@
1
+ module IgApi
2
+ VERSION = "0.0.9"
3
+ end
data/lib/ig_api.rb ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ig_api/http'
4
+ require 'ig_api/constants'
5
+ require 'ig_api/device'
6
+ require 'ig_api/user'
7
+ require 'ig_api/relationship'
8
+
9
+ # Root module
10
+ module IgApi
11
+ end
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.8
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: Instagram private api, implemented from huttarichard/instagram-private-api
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
- - lib/IgApi.rb
76
- - lib/IgApi/account.rb
77
- - lib/IgApi/configuration.rb
78
- - lib/IgApi/constants.rb
79
- - lib/IgApi/device.rb
80
- - lib/IgApi/feed.rb
81
- - lib/IgApi/http.rb
82
- - lib/IgApi/relationship.rb
83
- - lib/IgApi/user.rb
84
- - lib/IgApi/version.rb
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, implemented from huttarichard/instagram-private-api
109
+ summary: Instagram private api
110
110
  test_files: []
data/lib/IgApi/version.rb DELETED
@@ -1,3 +0,0 @@
1
- module IgApi
2
- VERSION = "0.0.8"
3
- end
data/lib/IgApi.rb DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'IgApi/http'
4
- require 'IgApi/constants'
5
- require 'IgApi/device'
6
- require 'IgApi/user'
7
- require 'IgApi/relationship'
8
-
9
- # Root module
10
- module IgApi
11
- end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes