Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create model for Photoshelter Galleries #108

Open
jimpo opened this issue Mar 26, 2013 · 9 comments
Open

Create model for Photoshelter Galleries #108

jimpo opened this issue Mar 26, 2013 · 9 comments

Comments

@jimpo
Copy link
Member

jimpo commented Mar 26, 2013

https://support.photoshelter.com/entries/21626597-Integration-with-PhotoShelter-API

That is the Photoshelter API. The first step here is to make a Ruby API for photoshelter and put it in lib/.

@ghost ghost assigned prithvi923 Mar 26, 2013
@jimpo
Copy link
Member Author

jimpo commented Mar 26, 2013

@tylernisonoff @prithvi923

@prithvi923
Copy link
Contributor

Can we have the login information so that we can test our lib api?

@ghost ghost assigned tylernisonoff and prithvi923 Apr 5, 2013
@tylernisonoff
Copy link
Contributor

@prithvi923
Copy link
Contributor

List of endpoints for psapi: http://www.photoshelter.com/psapi/v1/

@prithvi923
Copy link
Contributor

Photoshelter API

Embed image url: http://c.photoshelter.com/img-get/{i_id}/s/{size}

@jimpo
Copy link
Member Author

jimpo commented Apr 5, 2013

Can you guys post on here with your Photoshelter api class(es) and their method signatures?

@jimpo
Copy link
Member Author

jimpo commented Apr 11, 2013

https://github.com/rest-client/rest-client
Take a look. It could help.

@jimpo
Copy link
Member Author

jimpo commented Apr 11, 2013

HTTP Mocking:
This looks pretty cool, but I haven't used it: http://api.rubyonrails.org/classes/ActiveResource/HttpMock.html
Webmock: https://github.com/bblimke/webmock

I like Webmock because it has expectations.

@prithvi923
Copy link
Contributor

Gallery model spec

class Gallery < ActiveRecord::Base
  attr_accessible :name, :pid, :description, :section, :photoshelter_images

  validates :name, presence: true
  validates :pid, presence: true, uniqueness: true

  has_many :photoshelter_images
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants