| GET | /signup/api/campaign/{memberSubscriptionInvId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CampaignInfoGetRq implements IApiRequest
{
public Integer MemberSubscriptionInvId = null;
public Integer getMemberSubscriptionInvId() { return MemberSubscriptionInvId; }
public CampaignInfoGetRq setMemberSubscriptionInvId(Integer value) { this.MemberSubscriptionInvId = value; return this; }
}
public static class CampaignInfoGetRs implements IApiResponse
{
public ArrayList<CampaignInformation> Campaigns = null;
public ArrayList<CampaignInformation> getCampaigns() { return Campaigns; }
public CampaignInfoGetRs setCampaigns(ArrayList<CampaignInformation> value) { this.Campaigns = value; return this; }
}
public static class CampaignInformation
{
public Integer CampaignId = null;
public String CampaignName = null;
public BigDecimal Amount = null;
public String ChapPayID = null;
public Integer getCampaignId() { return CampaignId; }
public CampaignInformation setCampaignId(Integer value) { this.CampaignId = value; return this; }
public String getCampaignName() { return CampaignName; }
public CampaignInformation setCampaignName(String value) { this.CampaignName = value; return this; }
public BigDecimal getAmount() { return Amount; }
public CampaignInformation setAmount(BigDecimal value) { this.Amount = value; return this; }
public String getChapPayID() { return ChapPayID; }
public CampaignInformation setChapPayID(String value) { this.ChapPayID = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /signup/api/campaign/{memberSubscriptionInvId} HTTP/1.1
Host: devapi.billhighway.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{}