Field Squared API Services

<back to all web services

AssetVisits

The following routes are available for this service:
GET/{Workspace}/AssetVisits/{AssetId}/{Date}
GET/{Workspace}/AssetVisits/{AssetId}/{StartDate}/{EndDate}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class AssetVisits
    {
        public String Workspace = null;
        public String AssetId = null;
        public String Date = null;
        public String StartDate = null;
        public String EndDate = null;
        
        public String getWorkspace() { return Workspace; }
        public AssetVisits setWorkspace(String value) { this.Workspace = value; return this; }
        public String getAssetId() { return AssetId; }
        public AssetVisits setAssetId(String value) { this.AssetId = value; return this; }
        public String getDate() { return Date; }
        public AssetVisits setDate(String value) { this.Date = value; return this; }
        public String getStartDate() { return StartDate; }
        public AssetVisits setStartDate(String value) { this.StartDate = value; return this; }
        public String getEndDate() { return EndDate; }
        public AssetVisits setEndDate(String value) { this.EndDate = value; return this; }
    }

}

Java AssetVisits DTOs

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /{Workspace}/AssetVisits/{AssetId}/{Date} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json