accounts 1.0.0

  • README.md
  • Installing
  • Versions
  • 15

accounts #

Accounts service for eDropin

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.10
  • Build package: org.openapitools.codegen.languages.DartClientCodegen

Requirements #

Dart 1.20.0 or later OR Flutter 0.0.20 or later

Installation & Usage

Github #

If this Dart package is published to Github, please include the following in pubspec.yaml

name: accounts
version: 1.0.0
description: OpenAPI API client
dependencies:
  accounts:
    git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
      version: 'any'

Local #

To use the package in your local drive, please include the following in pubspec.yaml

dependencies:
  accounts:
    path: /path/to/accounts

Tests #

TODO

Getting Started #

Please follow the installation procedure and then run the following:

import 'package:accounts/api.dart';

// TODO Configure API key authorization: ClientKey
//accounts.api.Configuration.apiKey{'X-Client-Key'} = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//accounts.api.Configuration.apiKeyPrefix{'X-Client-Key'} = "Bearer";

var api_instance = new EaAccountsApi();
var eaPasswordAuthentication = new EaPasswordAuthentication(); // EaPasswordAuthentication | Authentication values

try {
    var result = api_instance.authenticatePassword(eaPasswordAuthentication);
    print(result);
} catch (e) {
    print("Exception when calling EaAccountsApi->authenticatePassword: $e\n");
}

Documentation for API Endpoints #

All URIs are relative to https://edropin-test.appspot.com

ClassMethodHTTP requestDescription
EaAccountsApiauthenticatePasswordPOST /accounts/authenticate/passwordAuthenticate using email/password
EaAccountsApigetAccountGET /accountsGet Account
EaAccountsApigetMultipleAccountsGET /accounts/get-multiGet multiple accounts [service only]
EaAccountsApiupdateAccountPUT /accountsCreate/update existing account
EaAccountsApiupdateAccountClaimsPUT /accounts/{accountId}/claimsUpdate account claims
EaPermissionsApiacceptPermissionInvitePOST /permissions/accept-invite/{inviteToken}Accept a permission invite
EaPermissionsApihasPermissionGET /permissions/{entityType}/{entityId}/accounts/{accountId}Check account has permission
EaPermissionsApipaginatePermissionsGET /permissions/{entityType}/{entityId}/accountsGet permissions for entity
EaPermissionsApiremovePermissionsForAccountDELETE /permissions/{entityType}/{entityId}/accounts/{accountId}Remove all permissions for account
EaPermissionsApisendPermissionInvitePOST /permissions/{entityType}/{entityId}/send-inviteSend a permission invite
EaPermissionsApisetPermissionPUT /permissions/{entityType}/{entityId}/accounts/{accountId}Set account permission
EaProfileInvitesApiarchiveProfileInviteDELETE /profile-invites/{inviteId}Archive a profile invitation
EaProfileInvitesApicreateProfileFromInvitePOST /profile-invites/referral/{referralCode}Create a profile from a profile invite
EaProfileInvitesApicreateProfileInvitePOST /profile-invitesCreate a new profile invite
EaProfileInvitesApigetMultipleInvitesGET /profile-invites/get-multiGet Multiple Profile Invites
EaProfileInvitesApigetProfileInviteReferralGET /profile-invites/referral/{referralCode}Get the pre-filled fields for on-boarding an invite
EaProfileInvitesApilistProfileInvitesGET /profile-invitesPaginate over all invitations made by requested user
EaProfileTagsApilistTagRequestsGET /profiles/{profileId}/profile-tagsPaginate over all tag requests for the profile
EaProfileTagsApiremoveProfileTagRequestDELETE /profile-tags/{profileTagId}Remove a profile tag request
EaProfileTagsApirespondToProfileTagRequestPUT /profile-tags/{profileTagId}Accept or decline a profile tag request
EaProfileTagsApiupsertProfileTagRequestPOST /profiles/{profileId}/profile-tagsRequest to tag a profile in an entity e.g. Event, Course, etc.
EaProfilesApicheckAccountHasPermissionGET /profiles/{profileId}/permissions/{accountId}/checkCheck account has permission
EaProfilesApicheckUsernameAvailabilityGET /profiles/usernamecheckCheck username availability
EaProfilesApicreateProfilePOST /profilesCreate profile
EaProfilesApideleteProfileDELETE /profiles/{profileId}Delete an existing profile
EaProfilesApigetAccountPermissionForProfileGET /profiles/{profileId}/permissions/{accountId}Get permission for account
EaProfilesApigetAllProfilesGET /profilesGet Profiles
EaProfilesApigetMultipleProfilesGET /profiles/get-multiGet Multiple Profiles
EaProfilesApigetProfileGET /profiles/{profileId}Get a profile from the directory
EaProfilesApigetProfileCategoriesGET /profiles/categoriesGet Profile Categories
EaProfilesApigetProfilePermissionGET /profiles/{profileId}/all-permissionsList all profile permissions
EaProfilesApipaginateProfileFeedGET /profiles/{profileId}/feedProfile Feed
EaProfilesApisearchProfileGET /profiles/searchSearch Profiles
EaProfilesApisendProfileEmailVerificationPOST /profiles/{profileId}/email-verificationSend email verification
EaProfilesApisetProfilePermissionPUT /profiles/{profileId}/permissions/{accountId}Set permission for profile
EaProfilesApisetStatusPUT /profiles/{profileId}/statusSet a profile status
EaProfilesApiupdateProfilePUT /profiles/{profileId}Update an existing profile
EaProfilesApiverifyProfileEmailPOST /profiles/email-verification/{code}Verifiy profile email
EaUtilitiesApicheckPhoneVerificationPOST /utility/phoneverification/checkCheck phone verification
EaUtilitiesApistartPhoneVerificationPOST /utility/phoneverification/startVerify a phone number

Documentation For Models #

Documentation For Authorization #

AdminKey #

  • Type: API key
  • API key parameter name: X-Admin-Key
  • Location: HTTP header

Authorization #

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

AuthorizationOptional #

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

ClientKey #

  • Type: API key
  • API key parameter name: X-Client-Key
  • Location: HTTP header

ServiceKey #

  • Type: API key
  • API key parameter name: X-Service-Key
  • Location: HTTP header

Author #

dev@edropin.com

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  accounts: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:accounts/api.dart';
import 'package:accounts/api/ea_accounts_api.dart';
import 'package:accounts/api/ea_permissions_api.dart';
import 'package:accounts/api/ea_profile_invites_api.dart';
import 'package:accounts/api/ea_profile_tags_api.dart';
import 'package:accounts/api/ea_profiles_api.dart';
import 'package:accounts/api/ea_utilities_api.dart';
import 'package:accounts/api_client.dart';
import 'package:accounts/api_exception.dart';
import 'package:accounts/api_helper.dart';
import 'package:accounts/auth/api_key_auth.dart';
import 'package:accounts/auth/authentication.dart';
import 'package:accounts/auth/http_basic_auth.dart';
import 'package:accounts/auth/oauth.dart';
import 'package:accounts/model/default_error.dart';
import 'package:accounts/model/ea_account.dart';
import 'package:accounts/model/ea_account_update.dart';
import 'package:accounts/model/ea_address.dart';
import 'package:accounts/model/ea_authentication.dart';
import 'package:accounts/model/ea_base_id.dart';
import 'package:accounts/model/ea_claims.dart';
import 'package:accounts/model/ea_email_verification.dart';
import 'package:accounts/model/ea_facet_search.dart';
import 'package:accounts/model/ea_facet_search_facet_hits.dart';
import 'package:accounts/model/ea_feed_item.dart';
import 'package:accounts/model/ea_geoloc.dart';
import 'package:accounts/model/ea_paged_account.dart';
import 'package:accounts/model/ea_paged_feed_item.dart';
import 'package:accounts/model/ea_paged_permission.dart';
import 'package:accounts/model/ea_paged_permission_invite.dart';
import 'package:accounts/model/ea_paged_profile.dart';
import 'package:accounts/model/ea_paged_profile_invite.dart';
import 'package:accounts/model/ea_paged_tag_request.dart';
import 'package:accounts/model/ea_pagination.dart';
import 'package:accounts/model/ea_password_authentication.dart';
import 'package:accounts/model/ea_permission.dart';
import 'package:accounts/model/ea_permission_accept.dart';
import 'package:accounts/model/ea_permission_check.dart';
import 'package:accounts/model/ea_permission_input.dart';
import 'package:accounts/model/ea_permission_invite.dart';
import 'package:accounts/model/ea_permission_invite_create.dart';
import 'package:accounts/model/ea_phone_verification.dart';
import 'package:accounts/model/ea_phone_verification_check.dart';
import 'package:accounts/model/ea_phone_verification_input.dart';
import 'package:accounts/model/ea_profile.dart';
import 'package:accounts/model/ea_profile_base.dart';
import 'package:accounts/model/ea_profile_invite.dart';
import 'package:accounts/model/ea_profile_invite_create.dart';
import 'package:accounts/model/ea_profile_status.dart';
import 'package:accounts/model/ea_profile_update.dart';
import 'package:accounts/model/ea_success.dart';
import 'package:accounts/model/ea_tag_request.dart';
import 'package:accounts/model/ea_tag_request_create.dart';
import 'package:accounts/model/ea_tag_respond.dart';
  
Version Uploaded Documentation Archive
1.0.0 Dec 20, 2018 Go to the documentation of accounts 1.0.0 Download accounts 1.0.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
19
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
45
Overall:
Weighted score of the above. [more]
15
Learn more about scoring.

We analyzed this package on Apr 12, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Health issues and suggestions

Fix lib/model/ea_profile.dart. (-33.50 points)

Analysis of lib/model/ea_profile.dart failed with 1 error, 24 hints, including:

line 86 col 29: The method 'listFromJson' isn't defined for the class 'Object'.

line 5 col 10: Don't explicitly initialize variables to null.

line 7 col 7: Don't explicitly initialize variables to null.

line 9 col 7: Don't explicitly initialize variables to null.

line 11 col 10: Don't explicitly initialize variables to null.

Fix lib/model/ea_profile_update.dart. (-8.63 points)

Analysis of lib/model/ea_profile_update.dart reported 18 hints, including:

line 5 col 10: Don't explicitly initialize variables to null.

line 7 col 10: Don't explicitly initialize variables to null.

line 9 col 10: Don't explicitly initialize variables to null.

line 11 col 10: Don't explicitly initialize variables to null.

line 13 col 10: Don't explicitly initialize variables to null.

Fix lib/api/ea_profiles_api.dart. (-8.17 points)

Analysis of lib/api/ea_profiles_api.dart reported 17 hints, including:

line 38 col 26: Use isNotEmpty instead of length

line 89 col 26: Use isNotEmpty instead of length

line 139 col 26: Use isNotEmpty instead of length

line 189 col 26: Use isNotEmpty instead of length

line 242 col 26: Use isNotEmpty instead of length

Fix additional 51 files with analysis or formatting issues. (-107.65 points)

Additional issues in the following files:

  • lib/model/ea_tag_request.dart (16 hints)
  • lib/model/ea_profile_base.dart (15 hints)
  • lib/model/ea_profile_invite.dart (14 hints)
  • lib/model/ea_permission_invite.dart (13 hints)
  • lib/model/ea_account.dart (11 hints)
  • lib/model/ea_permission.dart (11 hints)
  • lib/model/ea_address.dart (9 hints)
  • lib/model/ea_profile_invite_create.dart (8 hints)
  • lib/model/ea_feed_item.dart (7 hints)
  • lib/model/ea_tag_request_create.dart (7 hints)
  • lib/api/ea_permissions_api.dart (6 hints)
  • lib/api/ea_profile_invites_api.dart (6 hints)
  • lib/model/ea_account_update.dart (6 hints)
  • lib/api/ea_accounts_api.dart (5 hints)
  • lib/model/ea_base_id.dart (5 hints)
  • lib/model/ea_paged_profile.dart (5 hints)
  • lib/api/ea_profile_tags_api.dart (4 hints)
  • lib/model/ea_facet_search_facet_hits.dart (4 hints)
  • lib/model/ea_pagination.dart (4 hints)
  • lib/model/ea_phone_verification_check.dart (4 hints)
  • lib/model/default_error.dart (3 hints)
  • lib/model/ea_authentication.dart (3 hints)
  • lib/model/ea_email_verification.dart (3 hints)
  • lib/model/ea_facet_search.dart (3 hints)
  • lib/model/ea_geoloc.dart (3 hints)
  • lib/model/ea_paged_profile_invite.dart (3 hints)
  • lib/model/ea_password_authentication.dart (3 hints)
  • lib/model/ea_permission_accept.dart (3 hints)
  • lib/model/ea_permission_check.dart (3 hints)
  • lib/model/ea_permission_invite_create.dart (3 hints)
  • lib/model/ea_phone_verification_input.dart (3 hints)
  • lib/model/ea_profile_status.dart (3 hints)
  • lib/model/ea_success.dart (3 hints)
  • lib/api/ea_utilities_api.dart (2 hints)
  • lib/model/ea_claims.dart (2 hints)
  • lib/model/ea_paged_account.dart (2 hints)
  • lib/model/ea_paged_feed_item.dart (2 hints)
  • lib/model/ea_paged_permission.dart (2 hints)
  • lib/model/ea_paged_permission_invite.dart (2 hints)
  • lib/model/ea_paged_tag_request.dart (2 hints)
  • lib/model/ea_permission_input.dart (2 hints)
  • lib/model/ea_phone_verification.dart (2 hints)
  • lib/api_client.dart (1 hint)
  • lib/model/ea_tag_respond.dart (1 hint)
  • lib/api.dart (Run dartfmt to format lib/api.dart.)
  • lib/api_exception.dart (Run dartfmt to format lib/api_exception.dart.)
  • lib/api_helper.dart (Run dartfmt to format lib/api_helper.dart.)
  • lib/auth/api_key_auth.dart (Run dartfmt to format lib/auth/api_key_auth.dart.)
  • lib/auth/authentication.dart (Run dartfmt to format lib/auth/authentication.dart.)
  • lib/auth/http_basic_auth.dart (Run dartfmt to format lib/auth/http_basic_auth.dart.)
  • lib/auth/oauth.dart (Run dartfmt to format lib/auth/oauth.dart.)

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and accounts.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Homepage URL is insecure. (-5 points)

Update the homepage field and use a secure (https) URL.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
http >=0.11.1 <0.12.0 0.11.3+17 0.12.0+2
Transitive dependencies
async 2.2.0
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
meta 1.1.7
path 1.6.2
source_span 1.5.5
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6