pinterest-api 0.2.0 → 0.2.2
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/README.md +5 -4
- data/lib/pinterest/client/user.rb +4 -2
- data/lib/pinterest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23947737fa04298dcb3b66c9ce5859e072ce6c05
|
|
4
|
+
data.tar.gz: 58e70ea1325e5a89b08655f5816623c04ae27584
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c59be570e75c7621ddf28fc114a6f41379b183bdbdc06ee7785a400da7ef88377fba90a2e7fb3bcddefdde2c27971743e36fa6db9b0dddc21ba7a1b7a0defc7d
|
|
7
|
+
data.tar.gz: 292bd49abfedb82e14112704c861d54b9b08ee92e9d7370f64c41619b0e51e8cb04220fdb020eddfb1c89ee71932368fdd4d893dbfc8b2827fcc88cea883bc11
|
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Pinterest
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/pinterest-api)
|
|
3
4
|
[](https://codeclimate.com/github/realadeel/pinterest-api)
|
|
4
5
|
[](https://semaphoreci.com/realdeal/pinterest-api)
|
|
5
6
|
|
|
@@ -9,9 +10,9 @@ This gem uses Faraday and Hashie to make requests and parse the responses.
|
|
|
9
10
|
|
|
10
11
|
## Usage
|
|
11
12
|
|
|
12
|
-
Obtain an access token from Pinterest. You can generate one [here](https://developers.pinterest.com/
|
|
13
|
+
Obtain an access token from Pinterest. You can generate one [here](https://developers.pinterest.com/tools/access_token/).
|
|
13
14
|
|
|
14
|
-
$ gem install pinterest
|
|
15
|
+
$ gem install pinterest-api
|
|
15
16
|
|
|
16
17
|
```ruby
|
|
17
18
|
require 'pinterest-api'
|
|
@@ -92,13 +93,13 @@ https://github.com/intridea/omniauth
|
|
|
92
93
|
|
|
93
94
|
## Known Issues
|
|
94
95
|
|
|
95
|
-
The gem is currently under active development.
|
|
96
|
+
The gem is currently under active development. The following issues cause the test specs to fail, though it's not clear to me that these issues are not with the Pinterest API itself.
|
|
96
97
|
* PATCH requests not working, endpoint path is not being appended to base
|
|
98
|
+
* POST/DELETE requests for following/unfollowing interests respectively are not working
|
|
97
99
|
|
|
98
100
|
## TODO
|
|
99
101
|
|
|
100
102
|
* Pagination
|
|
101
|
-
* OAuth
|
|
102
103
|
* document Mash response methods
|
|
103
104
|
|
|
104
105
|
## Contributing
|
|
@@ -54,11 +54,13 @@ module Pinterest
|
|
|
54
54
|
delete("me/following/interests/#{interest_id}")
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
def
|
|
57
|
+
def get_pins(options={})
|
|
58
|
+
options[:query] ||= '*'
|
|
58
59
|
get('me/search/pins', options)
|
|
59
60
|
end
|
|
60
61
|
|
|
61
|
-
def
|
|
62
|
+
def get_boards(options={})
|
|
63
|
+
options[:query] ||= '*'
|
|
62
64
|
get('me/search/boards', options)
|
|
63
65
|
end
|
|
64
66
|
|
data/lib/pinterest/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pinterest-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adeel Ahmad
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|