Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7927683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:26:54+00:00 2026-06-03T19:26:54+00:00

In a rails 3 app, I’m using a third party API to save webcam

  • 0

In a rails 3 app, I’m using a third party API to save webcam videos. When a video is saved to their server, they give an option to send you a callback to a url you specify. From their site:


Callback

Callbacks are for advanced users who wish to be notified when a video is finished processing on the Framey servers. If you choose to receive callbacks in your account settings Framey will POST video and thumbnail URLs to your server once conversion is complete.

Here’s an example of the data that we post to your server:

"video": {  
  "name": "ecf7c330-549c-012e-9d34-7c6d628c53d4",        
  "filesize": 123456,       
  "duration": 15.62,        
  "state": "uploaded",              
  "views": 0,    
  "data": {
    "my_user_id": 1,
    "video_title": "Contest Submission"
  },
  "flv_url": "http://framey.com/videos/source/ecf7c330-549c-012e-9d34-7c6d628c53d4.flv",
  "mp4_url": "http://framey.com/videos/source/ecf7c330-549c-012e-9d34-7c6d628c53d4.mp4",
  "large_thumbnail_url": "http://framey.com/thumbnails/large/ecf7c330-549c-012e-9d34-7c6d628c53d4.jpg",
  "medium_thumbnail_url": "http://framey.com/thumbnails/medium/ecf7c330-549c-012e-9d34-7c6d628c53d4.jpg",
  "small_thumbnail_url": "http://framey.com/thumbnails/small/ecf7c330-549c-012e-9d34-7c6d628c53d4.jpg"
}

I’m working my way to understanding how to handle this, but I thought I could get proper direction from you good folks. They specify a POST method, so I have to set up a route. In my config/routes.rb file I have

post "framey/callback/"

In my app/controllers/framey_controller.rb file there is this:

class FrameyController < ApplicationController
  def callback
  end
end

Do I need to do something like

render :json =>???? 

I’m familiar with using POST via HTML forms and/or ajax. I’m not sure how to grab the JSON they send back to me.

Thanks in advance for the help and please let me know if you need more details.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:27:01+00:00Added an answer on June 3, 2026 at 7:27 pm

    In app/controllers/framey_controller.rb

    class FrameyController < ApplicationController
      def callback
        v = Video.new
        v.name = params[:video][:name]
        v.user_id = params[:video][:data][:user_id]
        v.question_id = params[:video][:data][:question_id]
        v.save
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails app that I'm moving to another server and I figure
Our Rails app is using Restful Authentication for user/session management and it seems that
my Rails app works fine locally. But once I put it on a server
Simple rails app using Postgres DB, getting 'integer out of range' error when trying
My Rails app is starting to need complicated queries. Should I just start using
My Rails app mockup is up on Heorku and is using images hosted on
We're building an app, our first using Rails 3, and we're having to build
I am building my rails app and using forem to integrate forum in it.
I have a rails app that is combining javascript assets using Jammit , and
I have a Rails app that repeatedly talks to another Web server through a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.