Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No permission issue #39

Open
zreaqqasem opened this issue Jul 14, 2023 · 0 comments
Open

No permission issue #39

zreaqqasem opened this issue Jul 14, 2023 · 0 comments

Comments

@zreaqqasem
Copy link

Im trying to use this package but fail to use it maybe I did something wrong but it doesn't have a detailed example

so here's how I use it

try {
final jira = JiraPlatformApi(
ApiClient.basicAuthentication(
Uri.parse('https://xxx.atlassian.net'),
user: 'user-id',
apiToken: 'api-token',
),
);

    final users = await jira.users.getAllUsers();
    print('Users:');
    for (var user in users) {
      print('Username: ${user.name}, Email: ${user.emailAddress}');
    }
    return true;
  } catch (e) {
    print('Error: $e');
    return false;
  }
  
  but Im keep getting this 
  
  flutter: Error: ApiException(403, Forbidden, url: https://xxx.atlassian.net/rest/api/3/users/search?, message: {"errorMessages":["error.no-permission"],"errors":{}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant