Skip to content

Commit f933456

Browse files
committed
added example and docs for secure image over https
started using this parameter in my code. thought it should be added to the docs.
1 parent 4497cec commit f933456

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

EXAMPLES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ client.connections
9898
```
9999
# get the original picture-url for one of the connections
100100
client.picture_urls(:id => 'id_of_connection')
101+
# get the image over https instead of http
102+
client.picture_urls(:id => 'id_of_connection', :secure => "true")
101103

102104
## Update User's Status
103105

lib/linked_in/api/people.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def new_connections(modified_since, options={})
6060
#
6161
# @options [String] :id, the id of the person for whom you want the profile picture
6262
# @options [String] :picture_size, default: 'original'
63+
# @options [String] :secure, default: 'false', options: ['false','true']
6364
#
6465
# example for use in code: client.picture_urls(:id => 'id_of_connection')
6566
def picture_urls(options={})

0 commit comments

Comments
 (0)