Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lobbyist-ruby / lib / lobbyist / v2 / social_network_profile.rb
Size: Mime:
module Lobbyist
  module V2

    class SocialNetworkProfile < Lobbyist::V2::Base
      attr_accessor :id, :page_uid, :page_tab_company_id, :type, :category, :screen_name
      attr_accessor :access_token, :access_secret, :error_description, :created_at, :updated_at

      def self.list(params = {})
        create_collection_from_response(get("/v2/social-network-profiles.json", params))
      end

      def self.create(params = {})
        create_from_response(post("/v2/social-network-profiles.json", {social_network_profile: params}))
      end

      def self.update(profile_id, params = {})
        create_from_response(put("/v2/social-network-profiles/#{profile_id}.json", {social_network_profile: params}))
      end

      def self.reset_syndicate(params = {})
        create_from_response(put("/v2/social-network-profiles/reset-syndicate", params))
      end

    end

  end
end