Class: XingApi::News::Page::Article

Inherits:
Base
  • Object
show all
Defined in:
lib/xing_api/news/page/article.rb

Class Method Summary collapse

Methods inherited from Base

request, request_with_body

Class Method Details

.create(page_id, source_url, title, options = {}) ⇒ Object



5
6
7
# File 'lib/xing_api/news/page/article.rb', line 5

def self.create(page_id, source_url, title, options = {})
  request(:post, "/v1/news/pages/#{page_id}/articles", { source_url: source_url, title: title }.merge(options))
end

.list(page_id, options = {}) ⇒ Object



9
10
11
# File 'lib/xing_api/news/page/article.rb', line 9

def self.list(page_id, options = {})
  request(:get, "/v1/news/pages/#{page_id}/articles", options)
end