jinya_cms_api 1.0.12 jinya_cms_api: ^1.0.12 copied to clipboard
Implementation of the Jinya CMS API written in Dart for use with Flutter and other Dart apps
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add jinya_cms_api
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
jinya_cms_api: ^1.0.12
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:jinya_cms_api/client/jinya_client.dart';
import 'package:jinya_cms_api/errors/conflict_exception.dart';
import 'package:jinya_cms_api/errors/missing_api_key_exception.dart';
import 'package:jinya_cms_api/errors/missing_field_exception.dart';
import 'package:jinya_cms_api/errors/not_enough_permissions_exception.dart';
import 'package:jinya_cms_api/errors/not_found_exception.dart';
import 'package:jinya_cms_api/jinya_cms.dart';
import 'package:jinya_cms_api/types/api_key.dart';
import 'package:jinya_cms_api/types/api_key.g.dart';
import 'package:jinya_cms_api/types/artist.dart';
import 'package:jinya_cms_api/types/artist.g.dart';
import 'package:jinya_cms_api/types/blog_category.dart';
import 'package:jinya_cms_api/types/blog_category.g.dart';
import 'package:jinya_cms_api/types/blog_post.dart';
import 'package:jinya_cms_api/types/blog_post.g.dart';
import 'package:jinya_cms_api/types/blog_post_segment.dart';
import 'package:jinya_cms_api/types/blog_post_segment.g.dart';
import 'package:jinya_cms_api/types/file.dart';
import 'package:jinya_cms_api/types/file.g.dart';
import 'package:jinya_cms_api/types/form.dart';
import 'package:jinya_cms_api/types/form.g.dart';
import 'package:jinya_cms_api/types/form_item.dart';
import 'package:jinya_cms_api/types/form_item.g.dart';
import 'package:jinya_cms_api/types/gallery.dart';
import 'package:jinya_cms_api/types/gallery.g.dart';
import 'package:jinya_cms_api/types/gallery_file_position.dart';
import 'package:jinya_cms_api/types/gallery_file_position.g.dart';
import 'package:jinya_cms_api/types/known_device.dart';
import 'package:jinya_cms_api/types/known_device.g.dart';
import 'package:jinya_cms_api/types/login_data.dart';
import 'package:jinya_cms_api/types/login_data.g.dart';
import 'package:jinya_cms_api/types/menu.dart';
import 'package:jinya_cms_api/types/menu.g.dart';
import 'package:jinya_cms_api/types/menu_item.dart';
import 'package:jinya_cms_api/types/menu_item.g.dart';
import 'package:jinya_cms_api/types/modification.dart';
import 'package:jinya_cms_api/types/modification.g.dart';
import 'package:jinya_cms_api/types/segment.dart';
import 'package:jinya_cms_api/types/segment.g.dart';
import 'package:jinya_cms_api/types/segment_page.dart';
import 'package:jinya_cms_api/types/segment_page.g.dart';
import 'package:jinya_cms_api/types/simple_page.dart';
import 'package:jinya_cms_api/types/simple_page.g.dart';
import 'package:jinya_cms_api/types/theme.dart';
import 'package:jinya_cms_api/types/theme.g.dart';
import 'package:jinya_cms_api/types/types.dart';