Top

spotify.object.context module

lass Context(object):
   def __init__(self, type, uri, href, external_urls):
       self.type = type
       self.uri = uri
       self.href = href
       self.external_urls = external_urls
   @classmethod
   def from_json(cls, json):
       return Context(
           json['type'],
           json['uri'],
           json['href'],
           json['external_urls']
       )

Classes

class Context

class Context(object):

    def __init__(self, type, uri, href, external_urls):
        self.type = type
        self.uri = uri
        self.href = href
        self.external_urls = external_urls

    @classmethod
    def from_json(cls, json):
        return Context(
            json['type'],
            json['uri'],
            json['href'],
            json['external_urls']
        )

Ancestors (in MRO)

Instance variables

var external_urls

var href

var type

var uri

Methods

def __init__(

self, type, uri, href, external_urls)

def __init__(self, type, uri, href, external_urls):
    self.type = type
    self.uri = uri
    self.href = href
    self.external_urls = external_urls

def from_json(

cls, json)

@classmethod
def from_json(cls, json):
    return Context(
        json['type'],
        json['uri'],
        json['href'],
        json['external_urls']
    )