-
Notifications
You must be signed in to change notification settings - Fork 21
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
Comments
Can we have the login information so that we can test our lib api? |
php api from wordpress |
List of endpoints for psapi: http://www.photoshelter.com/psapi/v1/ |
Photoshelter API
Embed image url: http://c.photoshelter.com/img-get/{i_id}/s/{size} |
Can you guys post on here with your Photoshelter api class(es) and their method signatures? |
https://github.com/rest-client/rest-client |
HTTP Mocking: I like Webmock because it has expectations. |
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 |
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/.
The text was updated successfully, but these errors were encountered: