cb-api 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,10 +13,13 @@ module Cb
13
13
 
14
14
  my_api = Cb::Utils::Api.new()
15
15
  xml_hash = my_api.cb_post(Cb.configuration.uri_application_external, :body => app.to_xml)
16
- my_api.append_api_responses(app, xml_hash)
16
+ my_api.append_api_responses(app, xml_hash["ResponseExternalApplication"])
17
+ puts xml_hash
17
18
 
18
19
  begin
19
- app.apply_url = xml_hash["ApplyUrl"] || ''
20
+ unless xml_hash["ResponseExternalApplication"].nil?
21
+ app.apply_url = xml_hash["ResponseExternalApplication"]["ApplyUrl"] || ''
22
+ end
20
23
  end
21
24
 
22
25
  return app
@@ -0,0 +1,28 @@
1
+ module Cb
2
+ class TalentNetwork
3
+ ####################################################
4
+ ## Documentation:
5
+ ## http://api.careerbuilder.com/TalentNetwork.aspx
6
+ ####################################################
7
+
8
+ def self.join_form_questions(tndid, responsetype)
9
+ ## Load the join form questions for a TalentNetworkDID
10
+ responsetype = 'xml' if responsetype.blank?
11
+ my_api = Cb::Utils::Api.new()
12
+ cb_response = my_api.cb_get("#{Cb.configuration.uri_tn_join_questions}/#{tndid}/#{responsetype}")
13
+ end
14
+
15
+ def self.join_form_branding
16
+ ## Gets branding information (stylesheets, copytext, etc...) for the join form.
17
+ end
18
+
19
+ def self.join_form_geography
20
+ ## Gets locations needed to fill the Geography question from the Join Form Question API
21
+ end
22
+
23
+ def self.member_create
24
+ ## Creates a member based on the form built with the Join Form Questions API call
25
+ end
26
+
27
+ end #TalentNetworkJoinQuestions
28
+ end #module
@@ -10,7 +10,7 @@ module Cb
10
10
  :uri_application_external,
11
11
  :uri_application_registered, :uri_user_change_password,
12
12
  :uri_user_delete, :uri_user_retrieve,
13
- :uri_job_branding, :uri_saved_job_search_create,
13
+ :uri_job_branding, :uri_tn_join_questions, :uri_saved_job_search_create,
14
14
  :uri_subscription_retrieve, :uri_subscription_modify
15
15
 
16
16
  def initialize
@@ -36,6 +36,7 @@ module Cb
36
36
  @uri_user_delete ||= '/v2/User/delete'
37
37
  @uri_user_retrieve ||= '/v2/user/retrieve'
38
38
  @uri_job_branding ||= '/branding'
39
+ @uri_tn_join_questions ||= '/talentnetwork/config/join/questions'
39
40
  @uri_subscription_retrieve ||= '/v1/user/subscription/retrieve'
40
41
  @uri_subscription_modify ||= '/v1/user/subscription'
41
42
  @uri_saved_job_search_create ||= '/v2/savedsearch/create'
@@ -62,6 +63,7 @@ module Cb
62
63
  :uri_user_change_password => @uri_user_change_password,
63
64
  :uri_user_retrieve => @uri_user_retrieve,
64
65
  :uri_job_branding => @uri_job_branding,
66
+ :uri_tn_join_questions => @uri_tn_join_questions,
65
67
  :uri_subscription_retrieve => @uri_subscription_retrieve,
66
68
  :uri_subscription_modify => @uri_subscription_modify,
67
69
  :uri_saved_job_search_create => @uri_saved_job_search_create
@@ -1,3 +1,3 @@
1
1
  module Cb
2
- VERSION = '0.1.19'
2
+ VERSION = '0.1.20'
3
3
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Jesse Retchko
@@ -14,11 +15,12 @@ authors:
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
- date: 2013-07-23 00:00:00.000000000 Z
18
+ date: 2013-07-25 00:00:00.000000000 Z
18
19
  dependencies:
19
20
  - !ruby/object:Gem::Dependency
20
21
  name: httparty
21
22
  requirement: !ruby/object:Gem::Requirement
23
+ none: false
22
24
  requirements:
23
25
  - - ~>
24
26
  - !ruby/object:Gem::Version
@@ -26,6 +28,7 @@ dependencies:
26
28
  type: :runtime
27
29
  prerelease: false
28
30
  version_requirements: !ruby/object:Gem::Requirement
31
+ none: false
29
32
  requirements:
30
33
  - - ~>
31
34
  - !ruby/object:Gem::Version
@@ -33,6 +36,7 @@ dependencies:
33
36
  - !ruby/object:Gem::Dependency
34
37
  name: json
35
38
  requirement: !ruby/object:Gem::Requirement
39
+ none: false
36
40
  requirements:
37
41
  - - ~>
38
42
  - !ruby/object:Gem::Version
@@ -40,6 +44,7 @@ dependencies:
40
44
  type: :runtime
41
45
  prerelease: false
42
46
  version_requirements: !ruby/object:Gem::Requirement
47
+ none: false
43
48
  requirements:
44
49
  - - ~>
45
50
  - !ruby/object:Gem::Version
@@ -47,6 +52,7 @@ dependencies:
47
52
  - !ruby/object:Gem::Dependency
48
53
  name: nori
49
54
  requirement: !ruby/object:Gem::Requirement
55
+ none: false
50
56
  requirements:
51
57
  - - ~>
52
58
  - !ruby/object:Gem::Version
@@ -54,6 +60,7 @@ dependencies:
54
60
  type: :runtime
55
61
  prerelease: false
56
62
  version_requirements: !ruby/object:Gem::Requirement
63
+ none: false
57
64
  requirements:
58
65
  - - ~>
59
66
  - !ruby/object:Gem::Version
@@ -81,6 +88,7 @@ files:
81
88
  - lib/cb/clients/job_api.rb
82
89
  - lib/cb/clients/job_branding_api.rb
83
90
  - lib/cb/clients/recommendation_api.rb
91
+ - lib/cb/clients/talent_network_api.rb
84
92
  - lib/cb/clients/user_api.rb
85
93
  - lib/cb/config.rb
86
94
  - lib/cb/criteria/job_details_criteria.rb
@@ -120,25 +128,26 @@ files:
120
128
  - README.md
121
129
  homepage: http://api.careerbuilder.com
122
130
  licenses: []
123
- metadata: {}
124
131
  post_install_message:
125
132
  rdoc_options: []
126
133
  require_paths:
127
134
  - lib
128
135
  required_ruby_version: !ruby/object:Gem::Requirement
136
+ none: false
129
137
  requirements:
130
138
  - - ! '>='
131
139
  - !ruby/object:Gem::Version
132
140
  version: '0'
133
141
  required_rubygems_version: !ruby/object:Gem::Requirement
142
+ none: false
134
143
  requirements:
135
144
  - - ! '>='
136
145
  - !ruby/object:Gem::Version
137
146
  version: '0'
138
147
  requirements: []
139
148
  rubyforge_project:
140
- rubygems_version: 2.0.3
149
+ rubygems_version: 1.8.25
141
150
  signing_key:
142
- specification_version: 4
151
+ specification_version: 3
143
152
  summary: Ruby wrapper around Careerbuilder Public API.
144
153
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MTlkZTMzNzVkMGMzYTNiY2M3OTNmMGY4ZjE4MTJjNjJlMjA3YjViMQ==
5
- data.tar.gz: !binary |-
6
- Mjc3MWVkODkwZGQzNWFiYzRmNGM4ZGU2ODYzZmEyYWYxNzRiN2IwMw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NjI4YjU1MTJkMzI2ZDM1NjIwY2ViZWE0YTU4OWJiZjRmMDkyMWRkZmI1YzM4
10
- ZDE3YjdjZTNlMTg3OWVhMmE1MDUzODJiZTk5ZTkzYTdjY2I0MjAzMzk2NDE4
11
- NDIyYjc0OTQyYzE2N2UyOTM2MGMzNzU2YjE5YzliNTU5MDE0N2Y=
12
- data.tar.gz: !binary |-
13
- MzBlNzNjMDY4OTQ1NmI5NWEyNzFlZTdkZGE1MzZiNDliMjNjYmJjZTViMWI4
14
- YzFiZWQ3Mzk3NjllNmMwNzdjMDQxMjdiMjVlYjc1NTNhYTQxNjllZTVkMTNh
15
- ZWExNzFjODU4MzEyMmMxZDk2NDU5ZTE1NGZmNTcyMDE0YjFiYjk=