- class UsersController < ApplicationController
- include ApiInfusionsoft
- def index
- @users = User.all
- infuser = api_data_query(:Contact,1,0,{:Id=>3674}, ["Id", "FirstName", "LastName"])
- print "\n infuser #{infuser.inspect}"
- respond_to do |format|
- format.html # index.html.erb
- format.xml { render :xml => @users }
- end
- end
- # other methods rm'd for this example.
- end