@@ -0,0 +1,3044 @@
+from soccermetrics.rest.resources import Resource%0A%0Aclass AnalyticsResource(Resource):%0A    %22%22%22Represents an Analytics REST resource (/analytics endpoints).%0A%0A    Derived from :class:%60resources.Resource%60.%0A    %22%22%22%0A    def __init__(self, resource, base_uri, auth):%0A        %22%22%22%0A        Constructor of AnalyticsResource class.%0A%0A        :param resource: Name of Analytics resource.%0A        :type resource: string%0A        :param base_uri: Base URI of API.%0A        :type base_uri: string%0A        :param auth: Authentication credential.%0A        :type auth: tuple%0A        %22%22%22%0A        super(AnalyticsResource, self).__init__(base_uri,auth)%0A%0A        self.base_endpoint = self.endpoint + '/analytics/match'%0A        self.match = None%0A        self.resource = resource%0A%0A    def EndpointURI(self):%0A        %22%22%22%0A        Construct URI of Analytics REST resource.%0A%0A        URI is of format %60%60/analytics/match/%3Cmatch%3E/%3Cresource%3E/%60%60.%0A%0A        :returns: URI of REST resource.%0A        :rtype: string%0A        %22%22%22%0A        return '/'.join(str(x) for x in %5Bself.base_endpoint,self.match,self.resource%5D if x)%0A%0A    def get(self, match, **kwargs):%0A        %22%22%22%0A        Retrieves a representation of Analytics REST resource.%0A%0A        :param match: Unique ID associated with football match.%0A        :type match: integer%0A        :param kwargs: Collection of query parameters.%0A        :type kwargs: dict%0A        :returns: Resource representation.%0A        :rtype: Return value of :func:%60Resource.get%60.%0A        %22%22%22%0A        self.match = match%0A        self.endpoint = self.EndpointURI()%0A        return super(AnalyticsResource, self).get(**kwargs)%0A%0A    def head(self):%0A        %22%22%22%0A        Retrieves header data of Analytics REST resource.%0A%0A        :returns: Header data.%0A        :rtype: Return value of :func:%60Resource.head%60.%0A        %22%22%22%0A        self.match = None%0A        self.endpoint = self.EndpointURI()%0A        return super(AnalyticsResource, self).head()%0A%0A    def options(self):%0A        %22%22%22%0A        Retrieves documentation of Analytics REST resource.%0A%0A        If the status code is 200 (OK), returns the documentation.  Otherwise,%0A        returns an error.%0A%0A        Link resources are not included in the documentation.%0A%0A        :returns: Resource documentation data.%0A        :rtype: Return value of :func:%60Resource.options%60.%0A        %22%22%22%0A        self.match = None%0A        self.endpoint = self.EndpointURI()%0A        return super(AnalyticsResource, self).options()%0A%0Aclass MatchAnalytics(object):%0A    %22%22%22Represents a Match Analytics REST resource (/analytics/match endpoints).%0A%0A    +----------------+-----------------------+%0A    %7C Attribute      %7C Description           %7C%0A    +================+=======================+%0A    %7C state          %7C Match state           %7C%0A    +----------------+-----------------------+%0A    %7C segment        %7C Match segments        %7C%0A    +----------------+-----------------------+%0A    %22%22%22%0A    def __init__(self, base_uri, auth):%0A        self.state = AnalyticsResource(%22state%22, base_uri, auth)%0A        self.segment = AnalyticsResource(%22segment%22, base_uri, auth)

Add analytics endpoints to client