API constructor

API(
  1. String access_token, {
  2. String v = '5.130',
  3. String lang = LanguageType.RU,
  4. bool test_mode = false,
  5. dynamic token_owner = TokenOwner.UNKNOWN,
})

Main api class

Implementation

API(String access_token,
    {String v = '5.130',
    String lang = LanguageType.RU,
    bool test_mode = false,
    token_owner = TokenOwner.UNKNOWN}) {
  _access_token = access_token;
  _token_owner = token_owner;
  _v = v;
  _lang = lang;
  _test_mode = test_mode;
  _token_owner = _token_owner;

  account = Account(this);
  ads = Ads(this);
  apps = Apps(this);
  board = Board(this);
  database = Database(this);
  docs = Docs(this);
  fave = Fave(this);
  friends = Friends(this);
  gifts = Gifts(this);
  groups = Groups(this);
  likes = Likes(this);
  market = Market(this);
  messages = Messages(this);
  newsfeed = Newsfeed(this);
  notes = Notes(this);
  notifications = Notifications(this);
  orders = Orders(this);
  pages = Pages(this);
  photos = Photos(this);
  polls = Polls(this);
  prettyCards = PrettyCards(this);
  search = Search(this);
  secure = Secure(this);
  stats = Stats(this);
  status = Status(this);
  storage = Storage(this);
  stories = Stories(this);
  streaming = Streaming(this);
  users = Users(this);
  utils = Utils(this);
  video = Video(this);
  wall = Wall(this);
  widgets = Widgets(this);
}