weblate 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/COPYING +674 -0
- data/Gemfile +8 -0
- data/README.md +334 -0
- data/Rakefile +49 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/bin/smoketest +14 -0
- data/bin/smoketest~ +0 -0
- data/docs/ActionEnum.md +15 -0
- data/docs/Addon.md +28 -0
- data/docs/AddonsApi.md +366 -0
- data/docs/AutoComponentList.md +20 -0
- data/docs/BasicUser.md +22 -0
- data/docs/BlankEnum.md +15 -0
- data/docs/CategoriesApi.md +520 -0
- data/docs/Category.md +30 -0
- data/docs/Change.md +42 -0
- data/docs/ChangesApi.md +163 -0
- data/docs/ColorEnum.md +15 -0
- data/docs/Component.md +146 -0
- data/docs/ComponentLanguageCodeStyle.md +49 -0
- data/docs/ComponentList.md +30 -0
- data/docs/ComponentListsApi.md +667 -0
- data/docs/ComponentsApi.md +1653 -0
- data/docs/ConflictsEnum.md +15 -0
- data/docs/DirectionEnum.md +15 -0
- data/docs/FileFormatEnum.md +15 -0
- data/docs/FrequencyEnum.md +15 -0
- data/docs/FuzzyEnum.md +15 -0
- data/docs/Group.md +40 -0
- data/docs/GroupsApi.md +1257 -0
- data/docs/Language.md +36 -0
- data/docs/LanguageCodeStyleEnum.md +15 -0
- data/docs/LanguagePlural.md +26 -0
- data/docs/LanguageSelectionEnum.md +15 -0
- data/docs/LanguagesApi.md +520 -0
- data/docs/LicenseEnum.md +15 -0
- data/docs/LockRequest.md +18 -0
- data/docs/Memory.md +34 -0
- data/docs/MemoryApi.md +448 -0
- data/docs/MergeStyleEnum.md +15 -0
- data/docs/MethodEnum.md +15 -0
- data/docs/Metrics.md +42 -0
- data/docs/MetricsApi.md +81 -0
- data/docs/NewLangEnum.md +15 -0
- data/docs/Notification.md +28 -0
- data/docs/NotificationEnum.md +15 -0
- data/docs/OperationEnum.md +15 -0
- data/docs/PaginatedAddonList.md +24 -0
- data/docs/PaginatedBasicUserList.md +24 -0
- data/docs/PaginatedCategoryList.md +24 -0
- data/docs/PaginatedChangeList.md +24 -0
- data/docs/PaginatedComponentList.md +24 -0
- data/docs/PaginatedComponentListList.md +24 -0
- data/docs/PaginatedGroupList.md +24 -0
- data/docs/PaginatedLanguageList.md +24 -0
- data/docs/PaginatedMemoryList.md +24 -0
- data/docs/PaginatedNotificationList.md +24 -0
- data/docs/PaginatedProjectList.md +24 -0
- data/docs/PaginatedRoleList.md +24 -0
- data/docs/PaginatedScreenshotList.md +24 -0
- data/docs/PaginatedTranslationList.md +24 -0
- data/docs/PaginatedUnitList.md +24 -0
- data/docs/PatchedAddon.md +28 -0
- data/docs/PatchedBasicUser.md +22 -0
- data/docs/PatchedCategory.md +30 -0
- data/docs/PatchedComponent.md +146 -0
- data/docs/PatchedComponentList.md +30 -0
- data/docs/PatchedGroup.md +40 -0
- data/docs/PatchedLanguage.md +36 -0
- data/docs/PatchedMemory.md +34 -0
- data/docs/PatchedNotification.md +28 -0
- data/docs/PatchedProject.md +58 -0
- data/docs/PatchedRole.md +24 -0
- data/docs/PatchedScreenshot.md +30 -0
- data/docs/PatchedUnitWrite.md +26 -0
- data/docs/PriorityEnum.md +15 -0
- data/docs/Project.md +58 -0
- data/docs/ProjectSelectionEnum.md +15 -0
- data/docs/ProjectsApi.md +1392 -0
- data/docs/RepoRequest.md +18 -0
- data/docs/Role.md +24 -0
- data/docs/RolesApi.md +448 -0
- data/docs/ScopeEnum.md +15 -0
- data/docs/Screenshot.md +30 -0
- data/docs/ScreenshotFile.md +18 -0
- data/docs/ScreenshotsApi.md +815 -0
- data/docs/SearchApi.md +75 -0
- data/docs/SourceEnum.md +15 -0
- data/docs/StateEnum.md +15 -0
- data/docs/TasksApi.md +145 -0
- data/docs/TextDirection.md +49 -0
- data/docs/Translation.md +80 -0
- data/docs/TranslationsApi.md +1028 -0
- data/docs/Unit.md +76 -0
- data/docs/UnitFlatLabels.md +24 -0
- data/docs/UnitLabels.md +24 -0
- data/docs/UnitWrite.md +26 -0
- data/docs/UnitsApi.md +376 -0
- data/docs/UploadRequest.md +28 -0
- data/docs/UploadRequestConflicts.md +49 -0
- data/docs/UploadRequestFuzzy.md +49 -0
- data/docs/UsersApi.md +1130 -0
- data/docs/VcsEnum.md +15 -0
- data/git_push.sh +57 -0
- data/lib/weblate/api/addons_api.rb +353 -0
- data/lib/weblate/api/categories_api.rb +495 -0
- data/lib/weblate/api/changes_api.rb +165 -0
- data/lib/weblate/api/component_lists_api.rb +642 -0
- data/lib/weblate/api/components_api.rb +1775 -0
- data/lib/weblate/api/groups_api.rb +1261 -0
- data/lib/weblate/api/languages_api.rb +495 -0
- data/lib/weblate/api/memory_api.rb +429 -0
- data/lib/weblate/api/metrics_api.rb +84 -0
- data/lib/weblate/api/projects_api.rb +1331 -0
- data/lib/weblate/api/roles_api.rb +429 -0
- data/lib/weblate/api/screenshots_api.rb +803 -0
- data/lib/weblate/api/search_api.rb +75 -0
- data/lib/weblate/api/tasks_api.rb +146 -0
- data/lib/weblate/api/translations_api.rb +1232 -0
- data/lib/weblate/api/units_api.rb +363 -0
- data/lib/weblate/api/users_api.rb +1104 -0
- data/lib/weblate/api_client.rb +437 -0
- data/lib/weblate/api_error.rb +58 -0
- data/lib/weblate/configuration.rb +392 -0
- data/lib/weblate/models/action_enum.rb +108 -0
- data/lib/weblate/models/addon.rb +314 -0
- data/lib/weblate/models/auto_component_list.rb +263 -0
- data/lib/weblate/models/basic_user.rb +292 -0
- data/lib/weblate/models/blank_enum.rb +39 -0
- data/lib/weblate/models/category.rb +361 -0
- data/lib/weblate/models/change.rb +408 -0
- data/lib/weblate/models/color_enum.rb +54 -0
- data/lib/weblate/models/component.rb +1377 -0
- data/lib/weblate/models/component_language_code_style.rb +106 -0
- data/lib/weblate/models/component_list.rb +366 -0
- data/lib/weblate/models/conflicts_enum.rb +41 -0
- data/lib/weblate/models/direction_enum.rb +40 -0
- data/lib/weblate/models/file_format_enum.rb +101 -0
- data/lib/weblate/models/frequency_enum.rb +43 -0
- data/lib/weblate/models/fuzzy_enum.rb +40 -0
- data/lib/weblate/models/group.rb +421 -0
- data/lib/weblate/models/language.rb +417 -0
- data/lib/weblate/models/language_code_style_enum.rb +51 -0
- data/lib/weblate/models/language_plural.rb +314 -0
- data/lib/weblate/models/language_selection_enum.rb +40 -0
- data/lib/weblate/models/license_enum.rb +677 -0
- data/lib/weblate/models/lock_request.rb +221 -0
- data/lib/weblate/models/memory.rb +329 -0
- data/lib/weblate/models/merge_style_enum.rb +41 -0
- data/lib/weblate/models/method_enum.rb +45 -0
- data/lib/weblate/models/metrics.rb +415 -0
- data/lib/weblate/models/new_lang_enum.rb +42 -0
- data/lib/weblate/models/notification.rb +323 -0
- data/lib/weblate/models/notification_enum.rb +60 -0
- data/lib/weblate/models/operation_enum.rb +43 -0
- data/lib/weblate/models/paginated_addon_list.rb +259 -0
- data/lib/weblate/models/paginated_basic_user_list.rb +259 -0
- data/lib/weblate/models/paginated_category_list.rb +259 -0
- data/lib/weblate/models/paginated_change_list.rb +259 -0
- data/lib/weblate/models/paginated_component_list.rb +259 -0
- data/lib/weblate/models/paginated_component_list_list.rb +259 -0
- data/lib/weblate/models/paginated_group_list.rb +259 -0
- data/lib/weblate/models/paginated_language_list.rb +259 -0
- data/lib/weblate/models/paginated_memory_list.rb +259 -0
- data/lib/weblate/models/paginated_notification_list.rb +259 -0
- data/lib/weblate/models/paginated_project_list.rb +259 -0
- data/lib/weblate/models/paginated_role_list.rb +259 -0
- data/lib/weblate/models/paginated_screenshot_list.rb +259 -0
- data/lib/weblate/models/paginated_translation_list.rb +259 -0
- data/lib/weblate/models/paginated_unit_list.rb +259 -0
- data/lib/weblate/models/patched_addon.rb +279 -0
- data/lib/weblate/models/patched_basic_user.rb +271 -0
- data/lib/weblate/models/patched_category.rb +319 -0
- data/lib/weblate/models/patched_component.rb +1242 -0
- data/lib/weblate/models/patched_component_list.rb +324 -0
- data/lib/weblate/models/patched_group.rb +365 -0
- data/lib/weblate/models/patched_language.rb +375 -0
- data/lib/weblate/models/patched_memory.rb +287 -0
- data/lib/weblate/models/patched_notification.rb +281 -0
- data/lib/weblate/models/patched_project.rb +472 -0
- data/lib/weblate/models/patched_role.rb +262 -0
- data/lib/weblate/models/patched_screenshot.rb +309 -0
- data/lib/weblate/models/patched_unit_write.rb +279 -0
- data/lib/weblate/models/priority_enum.rb +43 -0
- data/lib/weblate/models/project.rb +563 -0
- data/lib/weblate/models/project_selection_enum.rb +43 -0
- data/lib/weblate/models/repo_request.rb +243 -0
- data/lib/weblate/models/role.rb +290 -0
- data/lib/weblate/models/scope_enum.rb +43 -0
- data/lib/weblate/models/screenshot.rb +351 -0
- data/lib/weblate/models/screenshot_file.rb +221 -0
- data/lib/weblate/models/source_enum.rb +45 -0
- data/lib/weblate/models/state_enum.rb +43 -0
- data/lib/weblate/models/text_direction.rb +105 -0
- data/lib/weblate/models/translation.rb +760 -0
- data/lib/weblate/models/unit.rb +757 -0
- data/lib/weblate/models/unit_flat_labels.rb +315 -0
- data/lib/weblate/models/unit_labels.rb +315 -0
- data/lib/weblate/models/unit_write.rb +293 -0
- data/lib/weblate/models/upload_request.rb +307 -0
- data/lib/weblate/models/upload_request_conflicts.rb +105 -0
- data/lib/weblate/models/upload_request_fuzzy.rb +105 -0
- data/lib/weblate/models/vcs_enum.rb +46 -0
- data/lib/weblate/version.rb +15 -0
- data/lib/weblate.rb +135 -0
- data/manifest.scm +6 -0
- data/schema.patched.yaml +10113 -0
- data/schema.yaml +10116 -0
- data/sig/weblate.rbs +4 -0
- data/spec/api/addons_api_spec.rb +88 -0
- data/spec/api/categories_api_spec.rb +115 -0
- data/spec/api/changes_api_spec.rb +62 -0
- data/spec/api/component_lists_api_spec.rb +139 -0
- data/spec/api/components_api_spec.rb +307 -0
- data/spec/api/groups_api_spec.rb +236 -0
- data/spec/api/languages_api_spec.rb +115 -0
- data/spec/api/memory_api_spec.rb +104 -0
- data/spec/api/metrics_api_spec.rb +46 -0
- data/spec/api/projects_api_spec.rb +251 -0
- data/spec/api/roles_api_spec.rb +104 -0
- data/spec/api/screenshots_api_spec.rb +163 -0
- data/spec/api/search_api_spec.rb +45 -0
- data/spec/api/tasks_api_spec.rb +55 -0
- data/spec/api/translations_api_spec.rb +218 -0
- data/spec/api/units_api_spec.rb +93 -0
- data/spec/api/users_api_spec.rb +218 -0
- data/spec/models/action_enum_spec.rb +30 -0
- data/spec/models/addon_spec.rb +66 -0
- data/spec/models/auto_component_list_spec.rb +42 -0
- data/spec/models/basic_user_spec.rb +48 -0
- data/spec/models/blank_enum_spec.rb +30 -0
- data/spec/models/category_spec.rb +72 -0
- data/spec/models/change_spec.rb +108 -0
- data/spec/models/color_enum_spec.rb +30 -0
- data/spec/models/component_language_code_style_spec.rb +32 -0
- data/spec/models/component_list_spec.rb +72 -0
- data/spec/models/component_spec.rb +420 -0
- data/spec/models/conflicts_enum_spec.rb +30 -0
- data/spec/models/direction_enum_spec.rb +30 -0
- data/spec/models/file_format_enum_spec.rb +30 -0
- data/spec/models/frequency_enum_spec.rb +30 -0
- data/spec/models/fuzzy_enum_spec.rb +30 -0
- data/spec/models/group_spec.rb +102 -0
- data/spec/models/language_code_style_enum_spec.rb +30 -0
- data/spec/models/language_plural_spec.rb +60 -0
- data/spec/models/language_selection_enum_spec.rb +30 -0
- data/spec/models/language_spec.rb +90 -0
- data/spec/models/license_enum_spec.rb +30 -0
- data/spec/models/lock_request_spec.rb +36 -0
- data/spec/models/memory_spec.rb +84 -0
- data/spec/models/merge_style_enum_spec.rb +30 -0
- data/spec/models/method_enum_spec.rb +30 -0
- data/spec/models/metrics_spec.rb +108 -0
- data/spec/models/new_lang_enum_spec.rb +30 -0
- data/spec/models/notification_enum_spec.rb +30 -0
- data/spec/models/notification_spec.rb +66 -0
- data/spec/models/operation_enum_spec.rb +30 -0
- data/spec/models/paginated_addon_list_spec.rb +54 -0
- data/spec/models/paginated_basic_user_list_spec.rb +54 -0
- data/spec/models/paginated_category_list_spec.rb +54 -0
- data/spec/models/paginated_change_list_spec.rb +54 -0
- data/spec/models/paginated_component_list_list_spec.rb +54 -0
- data/spec/models/paginated_component_list_spec.rb +54 -0
- data/spec/models/paginated_group_list_spec.rb +54 -0
- data/spec/models/paginated_language_list_spec.rb +54 -0
- data/spec/models/paginated_memory_list_spec.rb +54 -0
- data/spec/models/paginated_notification_list_spec.rb +54 -0
- data/spec/models/paginated_project_list_spec.rb +54 -0
- data/spec/models/paginated_role_list_spec.rb +54 -0
- data/spec/models/paginated_screenshot_list_spec.rb +54 -0
- data/spec/models/paginated_translation_list_spec.rb +54 -0
- data/spec/models/paginated_unit_list_spec.rb +54 -0
- data/spec/models/patched_addon_spec.rb +66 -0
- data/spec/models/patched_basic_user_spec.rb +48 -0
- data/spec/models/patched_category_spec.rb +72 -0
- data/spec/models/patched_component_list_spec.rb +72 -0
- data/spec/models/patched_component_spec.rb +420 -0
- data/spec/models/patched_group_spec.rb +102 -0
- data/spec/models/patched_language_spec.rb +90 -0
- data/spec/models/patched_memory_spec.rb +84 -0
- data/spec/models/patched_notification_spec.rb +66 -0
- data/spec/models/patched_project_spec.rb +156 -0
- data/spec/models/patched_role_spec.rb +54 -0
- data/spec/models/patched_screenshot_spec.rb +72 -0
- data/spec/models/patched_unit_write_spec.rb +60 -0
- data/spec/models/priority_enum_spec.rb +30 -0
- data/spec/models/project_selection_enum_spec.rb +30 -0
- data/spec/models/project_spec.rb +156 -0
- data/spec/models/repo_request_spec.rb +36 -0
- data/spec/models/role_spec.rb +54 -0
- data/spec/models/scope_enum_spec.rb +30 -0
- data/spec/models/screenshot_file_spec.rb +36 -0
- data/spec/models/screenshot_spec.rb +72 -0
- data/spec/models/source_enum_spec.rb +30 -0
- data/spec/models/state_enum_spec.rb +30 -0
- data/spec/models/text_direction_spec.rb +32 -0
- data/spec/models/translation_spec.rb +222 -0
- data/spec/models/unit_flat_labels_spec.rb +54 -0
- data/spec/models/unit_labels_spec.rb +54 -0
- data/spec/models/unit_spec.rb +210 -0
- data/spec/models/unit_write_spec.rb +60 -0
- data/spec/models/upload_request_conflicts_spec.rb +32 -0
- data/spec/models/upload_request_fuzzy_spec.rb +32 -0
- data/spec/models/upload_request_spec.rb +66 -0
- data/spec/models/vcs_enum_spec.rb +30 -0
- data/spec/spec_helper.rb +111 -0
- data/weblate.gemspec +47 -0
- metadata +526 -0
data/docs/UsersApi.md
ADDED
|
@@ -0,0 +1,1130 @@
|
|
|
1
|
+
# Weblate::UsersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://hosted.weblate.org*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**users_create**](UsersApi.md#users_create) | **POST** /users/ | |
|
|
8
|
+
| [**users_destroy**](UsersApi.md#users_destroy) | **DELETE** /users/{username}/ | |
|
|
9
|
+
| [**users_groups_create**](UsersApi.md#users_groups_create) | **POST** /users/{username}/groups/ | |
|
|
10
|
+
| [**users_groups_destroy**](UsersApi.md#users_groups_destroy) | **DELETE** /users/{username}/groups/ | |
|
|
11
|
+
| [**users_list**](UsersApi.md#users_list) | **GET** /users/ | |
|
|
12
|
+
| [**users_notifications_create**](UsersApi.md#users_notifications_create) | **POST** /users/{username}/notifications/ | |
|
|
13
|
+
| [**users_notifications_destroy**](UsersApi.md#users_notifications_destroy) | **DELETE** /users/{username}/notifications/{subscription_id}/ | |
|
|
14
|
+
| [**users_notifications_list**](UsersApi.md#users_notifications_list) | **GET** /users/{username}/notifications/ | |
|
|
15
|
+
| [**users_notifications_partial_update**](UsersApi.md#users_notifications_partial_update) | **PATCH** /users/{username}/notifications/{subscription_id}/ | |
|
|
16
|
+
| [**users_notifications_retrieve**](UsersApi.md#users_notifications_retrieve) | **GET** /users/{username}/notifications/{subscription_id}/ | |
|
|
17
|
+
| [**users_notifications_update**](UsersApi.md#users_notifications_update) | **PUT** /users/{username}/notifications/{subscription_id}/ | |
|
|
18
|
+
| [**users_partial_update**](UsersApi.md#users_partial_update) | **PATCH** /users/{username}/ | |
|
|
19
|
+
| [**users_retrieve**](UsersApi.md#users_retrieve) | **GET** /users/{username}/ | |
|
|
20
|
+
| [**users_statistics_retrieve**](UsersApi.md#users_statistics_retrieve) | **GET** /users/{username}/statistics/ | |
|
|
21
|
+
| [**users_update**](UsersApi.md#users_update) | **PUT** /users/{username}/ | |
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## users_create
|
|
25
|
+
|
|
26
|
+
> <BasicUser> users_create(basic_user)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
Users API.
|
|
31
|
+
|
|
32
|
+
### Examples
|
|
33
|
+
|
|
34
|
+
```ruby
|
|
35
|
+
require 'time'
|
|
36
|
+
require 'weblate'
|
|
37
|
+
# setup authorization
|
|
38
|
+
Weblate.configure do |config|
|
|
39
|
+
# Configure API key authorization: tokenAuth
|
|
40
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
41
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
42
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
api_instance = Weblate::UsersApi.new
|
|
46
|
+
basic_user = Weblate::BasicUser.new({id: 37, full_name: 'full_name_example', username: 'username_example'}) # BasicUser |
|
|
47
|
+
|
|
48
|
+
begin
|
|
49
|
+
|
|
50
|
+
result = api_instance.users_create(basic_user)
|
|
51
|
+
p result
|
|
52
|
+
rescue Weblate::ApiError => e
|
|
53
|
+
puts "Error when calling UsersApi->users_create: #{e}"
|
|
54
|
+
end
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
#### Using the users_create_with_http_info variant
|
|
58
|
+
|
|
59
|
+
This returns an Array which contains the response data, status code and headers.
|
|
60
|
+
|
|
61
|
+
> <Array(<BasicUser>, Integer, Hash)> users_create_with_http_info(basic_user)
|
|
62
|
+
|
|
63
|
+
```ruby
|
|
64
|
+
begin
|
|
65
|
+
|
|
66
|
+
data, status_code, headers = api_instance.users_create_with_http_info(basic_user)
|
|
67
|
+
p status_code # => 2xx
|
|
68
|
+
p headers # => { ... }
|
|
69
|
+
p data # => <BasicUser>
|
|
70
|
+
rescue Weblate::ApiError => e
|
|
71
|
+
puts "Error when calling UsersApi->users_create_with_http_info: #{e}"
|
|
72
|
+
end
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Parameters
|
|
76
|
+
|
|
77
|
+
| Name | Type | Description | Notes |
|
|
78
|
+
| ---- | ---- | ----------- | ----- |
|
|
79
|
+
| **basic_user** | [**BasicUser**](BasicUser.md) | | |
|
|
80
|
+
|
|
81
|
+
### Return type
|
|
82
|
+
|
|
83
|
+
[**BasicUser**](BasicUser.md)
|
|
84
|
+
|
|
85
|
+
### Authorization
|
|
86
|
+
|
|
87
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
88
|
+
|
|
89
|
+
### HTTP request headers
|
|
90
|
+
|
|
91
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
92
|
+
- **Accept**: application/json
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## users_destroy
|
|
96
|
+
|
|
97
|
+
> users_destroy(username)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
Users API.
|
|
102
|
+
|
|
103
|
+
### Examples
|
|
104
|
+
|
|
105
|
+
```ruby
|
|
106
|
+
require 'time'
|
|
107
|
+
require 'weblate'
|
|
108
|
+
# setup authorization
|
|
109
|
+
Weblate.configure do |config|
|
|
110
|
+
# Configure API key authorization: tokenAuth
|
|
111
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
112
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
113
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
api_instance = Weblate::UsersApi.new
|
|
117
|
+
username = 'username_example' # String |
|
|
118
|
+
|
|
119
|
+
begin
|
|
120
|
+
|
|
121
|
+
api_instance.users_destroy(username)
|
|
122
|
+
rescue Weblate::ApiError => e
|
|
123
|
+
puts "Error when calling UsersApi->users_destroy: #{e}"
|
|
124
|
+
end
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
#### Using the users_destroy_with_http_info variant
|
|
128
|
+
|
|
129
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
130
|
+
|
|
131
|
+
> <Array(nil, Integer, Hash)> users_destroy_with_http_info(username)
|
|
132
|
+
|
|
133
|
+
```ruby
|
|
134
|
+
begin
|
|
135
|
+
|
|
136
|
+
data, status_code, headers = api_instance.users_destroy_with_http_info(username)
|
|
137
|
+
p status_code # => 2xx
|
|
138
|
+
p headers # => { ... }
|
|
139
|
+
p data # => nil
|
|
140
|
+
rescue Weblate::ApiError => e
|
|
141
|
+
puts "Error when calling UsersApi->users_destroy_with_http_info: #{e}"
|
|
142
|
+
end
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Parameters
|
|
146
|
+
|
|
147
|
+
| Name | Type | Description | Notes |
|
|
148
|
+
| ---- | ---- | ----------- | ----- |
|
|
149
|
+
| **username** | **String** | | |
|
|
150
|
+
|
|
151
|
+
### Return type
|
|
152
|
+
|
|
153
|
+
nil (empty response body)
|
|
154
|
+
|
|
155
|
+
### Authorization
|
|
156
|
+
|
|
157
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
158
|
+
|
|
159
|
+
### HTTP request headers
|
|
160
|
+
|
|
161
|
+
- **Content-Type**: Not defined
|
|
162
|
+
- **Accept**: Not defined
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
## users_groups_create
|
|
166
|
+
|
|
167
|
+
> <BasicUser> users_groups_create(username, basic_user)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
Users API.
|
|
172
|
+
|
|
173
|
+
### Examples
|
|
174
|
+
|
|
175
|
+
```ruby
|
|
176
|
+
require 'time'
|
|
177
|
+
require 'weblate'
|
|
178
|
+
# setup authorization
|
|
179
|
+
Weblate.configure do |config|
|
|
180
|
+
# Configure API key authorization: tokenAuth
|
|
181
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
182
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
183
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
api_instance = Weblate::UsersApi.new
|
|
187
|
+
username = 'username_example' # String |
|
|
188
|
+
basic_user = Weblate::BasicUser.new({id: 37, full_name: 'full_name_example', username: 'username_example'}) # BasicUser |
|
|
189
|
+
|
|
190
|
+
begin
|
|
191
|
+
|
|
192
|
+
result = api_instance.users_groups_create(username, basic_user)
|
|
193
|
+
p result
|
|
194
|
+
rescue Weblate::ApiError => e
|
|
195
|
+
puts "Error when calling UsersApi->users_groups_create: #{e}"
|
|
196
|
+
end
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
#### Using the users_groups_create_with_http_info variant
|
|
200
|
+
|
|
201
|
+
This returns an Array which contains the response data, status code and headers.
|
|
202
|
+
|
|
203
|
+
> <Array(<BasicUser>, Integer, Hash)> users_groups_create_with_http_info(username, basic_user)
|
|
204
|
+
|
|
205
|
+
```ruby
|
|
206
|
+
begin
|
|
207
|
+
|
|
208
|
+
data, status_code, headers = api_instance.users_groups_create_with_http_info(username, basic_user)
|
|
209
|
+
p status_code # => 2xx
|
|
210
|
+
p headers # => { ... }
|
|
211
|
+
p data # => <BasicUser>
|
|
212
|
+
rescue Weblate::ApiError => e
|
|
213
|
+
puts "Error when calling UsersApi->users_groups_create_with_http_info: #{e}"
|
|
214
|
+
end
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Parameters
|
|
218
|
+
|
|
219
|
+
| Name | Type | Description | Notes |
|
|
220
|
+
| ---- | ---- | ----------- | ----- |
|
|
221
|
+
| **username** | **String** | | |
|
|
222
|
+
| **basic_user** | [**BasicUser**](BasicUser.md) | | |
|
|
223
|
+
|
|
224
|
+
### Return type
|
|
225
|
+
|
|
226
|
+
[**BasicUser**](BasicUser.md)
|
|
227
|
+
|
|
228
|
+
### Authorization
|
|
229
|
+
|
|
230
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
231
|
+
|
|
232
|
+
### HTTP request headers
|
|
233
|
+
|
|
234
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
235
|
+
- **Accept**: application/json
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## users_groups_destroy
|
|
239
|
+
|
|
240
|
+
> users_groups_destroy(username)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
Users API.
|
|
245
|
+
|
|
246
|
+
### Examples
|
|
247
|
+
|
|
248
|
+
```ruby
|
|
249
|
+
require 'time'
|
|
250
|
+
require 'weblate'
|
|
251
|
+
# setup authorization
|
|
252
|
+
Weblate.configure do |config|
|
|
253
|
+
# Configure API key authorization: tokenAuth
|
|
254
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
255
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
256
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
api_instance = Weblate::UsersApi.new
|
|
260
|
+
username = 'username_example' # String |
|
|
261
|
+
|
|
262
|
+
begin
|
|
263
|
+
|
|
264
|
+
api_instance.users_groups_destroy(username)
|
|
265
|
+
rescue Weblate::ApiError => e
|
|
266
|
+
puts "Error when calling UsersApi->users_groups_destroy: #{e}"
|
|
267
|
+
end
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
#### Using the users_groups_destroy_with_http_info variant
|
|
271
|
+
|
|
272
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
273
|
+
|
|
274
|
+
> <Array(nil, Integer, Hash)> users_groups_destroy_with_http_info(username)
|
|
275
|
+
|
|
276
|
+
```ruby
|
|
277
|
+
begin
|
|
278
|
+
|
|
279
|
+
data, status_code, headers = api_instance.users_groups_destroy_with_http_info(username)
|
|
280
|
+
p status_code # => 2xx
|
|
281
|
+
p headers # => { ... }
|
|
282
|
+
p data # => nil
|
|
283
|
+
rescue Weblate::ApiError => e
|
|
284
|
+
puts "Error when calling UsersApi->users_groups_destroy_with_http_info: #{e}"
|
|
285
|
+
end
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Parameters
|
|
289
|
+
|
|
290
|
+
| Name | Type | Description | Notes |
|
|
291
|
+
| ---- | ---- | ----------- | ----- |
|
|
292
|
+
| **username** | **String** | | |
|
|
293
|
+
|
|
294
|
+
### Return type
|
|
295
|
+
|
|
296
|
+
nil (empty response body)
|
|
297
|
+
|
|
298
|
+
### Authorization
|
|
299
|
+
|
|
300
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
301
|
+
|
|
302
|
+
### HTTP request headers
|
|
303
|
+
|
|
304
|
+
- **Content-Type**: Not defined
|
|
305
|
+
- **Accept**: Not defined
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
## users_list
|
|
309
|
+
|
|
310
|
+
> <PaginatedBasicUserList> users_list(opts)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
Users API.
|
|
315
|
+
|
|
316
|
+
### Examples
|
|
317
|
+
|
|
318
|
+
```ruby
|
|
319
|
+
require 'time'
|
|
320
|
+
require 'weblate'
|
|
321
|
+
# setup authorization
|
|
322
|
+
Weblate.configure do |config|
|
|
323
|
+
# Configure API key authorization: tokenAuth
|
|
324
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
325
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
326
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
api_instance = Weblate::UsersApi.new
|
|
330
|
+
opts = {
|
|
331
|
+
page: 56, # Integer | A page number within the paginated result set.
|
|
332
|
+
page_size: 56, # Integer | Number of results to return per page.
|
|
333
|
+
username: 'username_example' # String |
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
begin
|
|
337
|
+
|
|
338
|
+
result = api_instance.users_list(opts)
|
|
339
|
+
p result
|
|
340
|
+
rescue Weblate::ApiError => e
|
|
341
|
+
puts "Error when calling UsersApi->users_list: #{e}"
|
|
342
|
+
end
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
#### Using the users_list_with_http_info variant
|
|
346
|
+
|
|
347
|
+
This returns an Array which contains the response data, status code and headers.
|
|
348
|
+
|
|
349
|
+
> <Array(<PaginatedBasicUserList>, Integer, Hash)> users_list_with_http_info(opts)
|
|
350
|
+
|
|
351
|
+
```ruby
|
|
352
|
+
begin
|
|
353
|
+
|
|
354
|
+
data, status_code, headers = api_instance.users_list_with_http_info(opts)
|
|
355
|
+
p status_code # => 2xx
|
|
356
|
+
p headers # => { ... }
|
|
357
|
+
p data # => <PaginatedBasicUserList>
|
|
358
|
+
rescue Weblate::ApiError => e
|
|
359
|
+
puts "Error when calling UsersApi->users_list_with_http_info: #{e}"
|
|
360
|
+
end
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
### Parameters
|
|
364
|
+
|
|
365
|
+
| Name | Type | Description | Notes |
|
|
366
|
+
| ---- | ---- | ----------- | ----- |
|
|
367
|
+
| **page** | **Integer** | A page number within the paginated result set. | [optional] |
|
|
368
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
|
369
|
+
| **username** | **String** | | [optional] |
|
|
370
|
+
|
|
371
|
+
### Return type
|
|
372
|
+
|
|
373
|
+
[**PaginatedBasicUserList**](PaginatedBasicUserList.md)
|
|
374
|
+
|
|
375
|
+
### Authorization
|
|
376
|
+
|
|
377
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
378
|
+
|
|
379
|
+
### HTTP request headers
|
|
380
|
+
|
|
381
|
+
- **Content-Type**: Not defined
|
|
382
|
+
- **Accept**: application/json
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
## users_notifications_create
|
|
386
|
+
|
|
387
|
+
> <PaginatedNotificationList> users_notifications_create(username, notification, opts)
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
Users API.
|
|
392
|
+
|
|
393
|
+
### Examples
|
|
394
|
+
|
|
395
|
+
```ruby
|
|
396
|
+
require 'time'
|
|
397
|
+
require 'weblate'
|
|
398
|
+
# setup authorization
|
|
399
|
+
Weblate.configure do |config|
|
|
400
|
+
# Configure API key authorization: tokenAuth
|
|
401
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
402
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
403
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
api_instance = Weblate::UsersApi.new
|
|
407
|
+
username = 'username_example' # String |
|
|
408
|
+
notification = Weblate::Notification.new({notification: Weblate::NotificationEnum::REPOSITORY_NOTIFICATION, id: 37, scope: Weblate::ScopeEnum::N0, frequency: Weblate::FrequencyEnum::N0, project: Weblate::Project.new({name: 'name_example', slug: 'slug_example', id: 37, web_url: 'web_url_example', url: 'url_example', components_list_url: 'components_list_url_example', repository_url: 'repository_url_example', statistics_url: 'statistics_url_example', categories_url: 'categories_url_example', changes_list_url: 'changes_list_url_example', languages_url: 'languages_url_example', labels_url: 'labels_url_example', credits_url: 'credits_url_example'}), component: Weblate::Component.new({name: 'name_example', slug: 'slug_example', id: 37, project: Weblate::Project.new({name: 'name_example', slug: 'slug_example', id: 37, web_url: 'web_url_example', url: 'url_example', components_list_url: 'components_list_url_example', repository_url: 'repository_url_example', statistics_url: 'statistics_url_example', categories_url: 'categories_url_example', changes_list_url: 'changes_list_url_example', languages_url: 'languages_url_example', labels_url: 'labels_url_example', credits_url: 'credits_url_example'}), repo: 'repo_example', filemask: 'filemask_example', file_format: Weblate::FileFormatEnum::APPSTORE, license_url: 'license_url_example', web_url: 'web_url_example', url: 'url_example', repository_url: 'repository_url_example', translations_url: 'translations_url_example', statistics_url: 'statistics_url_example', lock_url: 'lock_url_example', links_url: 'links_url_example', changes_list_url: 'changes_list_url_example', task_url: 'task_url_example', credits_url: 'credits_url_example', addons: ['addons_example'], linked_component: 'linked_component_example'})}) # Notification |
|
|
409
|
+
opts = {
|
|
410
|
+
page: 56, # Integer | A page number within the paginated result set.
|
|
411
|
+
page_size: 56, # Integer | Number of results to return per page.
|
|
412
|
+
username2: 'username_example' # String |
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
begin
|
|
416
|
+
|
|
417
|
+
result = api_instance.users_notifications_create(username, notification, opts)
|
|
418
|
+
p result
|
|
419
|
+
rescue Weblate::ApiError => e
|
|
420
|
+
puts "Error when calling UsersApi->users_notifications_create: #{e}"
|
|
421
|
+
end
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
#### Using the users_notifications_create_with_http_info variant
|
|
425
|
+
|
|
426
|
+
This returns an Array which contains the response data, status code and headers.
|
|
427
|
+
|
|
428
|
+
> <Array(<PaginatedNotificationList>, Integer, Hash)> users_notifications_create_with_http_info(username, notification, opts)
|
|
429
|
+
|
|
430
|
+
```ruby
|
|
431
|
+
begin
|
|
432
|
+
|
|
433
|
+
data, status_code, headers = api_instance.users_notifications_create_with_http_info(username, notification, opts)
|
|
434
|
+
p status_code # => 2xx
|
|
435
|
+
p headers # => { ... }
|
|
436
|
+
p data # => <PaginatedNotificationList>
|
|
437
|
+
rescue Weblate::ApiError => e
|
|
438
|
+
puts "Error when calling UsersApi->users_notifications_create_with_http_info: #{e}"
|
|
439
|
+
end
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
### Parameters
|
|
443
|
+
|
|
444
|
+
| Name | Type | Description | Notes |
|
|
445
|
+
| ---- | ---- | ----------- | ----- |
|
|
446
|
+
| **username** | **String** | | |
|
|
447
|
+
| **notification** | [**Notification**](Notification.md) | | |
|
|
448
|
+
| **page** | **Integer** | A page number within the paginated result set. | [optional] |
|
|
449
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
|
450
|
+
| **username2** | **String** | | [optional] |
|
|
451
|
+
|
|
452
|
+
### Return type
|
|
453
|
+
|
|
454
|
+
[**PaginatedNotificationList**](PaginatedNotificationList.md)
|
|
455
|
+
|
|
456
|
+
### Authorization
|
|
457
|
+
|
|
458
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
459
|
+
|
|
460
|
+
### HTTP request headers
|
|
461
|
+
|
|
462
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
463
|
+
- **Accept**: application/json
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
## users_notifications_destroy
|
|
467
|
+
|
|
468
|
+
> users_notifications_destroy(subscription_id, username)
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
Users API.
|
|
473
|
+
|
|
474
|
+
### Examples
|
|
475
|
+
|
|
476
|
+
```ruby
|
|
477
|
+
require 'time'
|
|
478
|
+
require 'weblate'
|
|
479
|
+
# setup authorization
|
|
480
|
+
Weblate.configure do |config|
|
|
481
|
+
# Configure API key authorization: tokenAuth
|
|
482
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
483
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
484
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
api_instance = Weblate::UsersApi.new
|
|
488
|
+
subscription_id = 56 # Integer |
|
|
489
|
+
username = 'username_example' # String |
|
|
490
|
+
|
|
491
|
+
begin
|
|
492
|
+
|
|
493
|
+
api_instance.users_notifications_destroy(subscription_id, username)
|
|
494
|
+
rescue Weblate::ApiError => e
|
|
495
|
+
puts "Error when calling UsersApi->users_notifications_destroy: #{e}"
|
|
496
|
+
end
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
#### Using the users_notifications_destroy_with_http_info variant
|
|
500
|
+
|
|
501
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
502
|
+
|
|
503
|
+
> <Array(nil, Integer, Hash)> users_notifications_destroy_with_http_info(subscription_id, username)
|
|
504
|
+
|
|
505
|
+
```ruby
|
|
506
|
+
begin
|
|
507
|
+
|
|
508
|
+
data, status_code, headers = api_instance.users_notifications_destroy_with_http_info(subscription_id, username)
|
|
509
|
+
p status_code # => 2xx
|
|
510
|
+
p headers # => { ... }
|
|
511
|
+
p data # => nil
|
|
512
|
+
rescue Weblate::ApiError => e
|
|
513
|
+
puts "Error when calling UsersApi->users_notifications_destroy_with_http_info: #{e}"
|
|
514
|
+
end
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
### Parameters
|
|
518
|
+
|
|
519
|
+
| Name | Type | Description | Notes |
|
|
520
|
+
| ---- | ---- | ----------- | ----- |
|
|
521
|
+
| **subscription_id** | **Integer** | | |
|
|
522
|
+
| **username** | **String** | | |
|
|
523
|
+
|
|
524
|
+
### Return type
|
|
525
|
+
|
|
526
|
+
nil (empty response body)
|
|
527
|
+
|
|
528
|
+
### Authorization
|
|
529
|
+
|
|
530
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
531
|
+
|
|
532
|
+
### HTTP request headers
|
|
533
|
+
|
|
534
|
+
- **Content-Type**: Not defined
|
|
535
|
+
- **Accept**: Not defined
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
## users_notifications_list
|
|
539
|
+
|
|
540
|
+
> <PaginatedNotificationList> users_notifications_list(username, opts)
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
Users API.
|
|
545
|
+
|
|
546
|
+
### Examples
|
|
547
|
+
|
|
548
|
+
```ruby
|
|
549
|
+
require 'time'
|
|
550
|
+
require 'weblate'
|
|
551
|
+
# setup authorization
|
|
552
|
+
Weblate.configure do |config|
|
|
553
|
+
# Configure API key authorization: tokenAuth
|
|
554
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
555
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
556
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
api_instance = Weblate::UsersApi.new
|
|
560
|
+
username = 'username_example' # String |
|
|
561
|
+
opts = {
|
|
562
|
+
page: 56, # Integer | A page number within the paginated result set.
|
|
563
|
+
page_size: 56, # Integer | Number of results to return per page.
|
|
564
|
+
username2: 'username_example' # String |
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
begin
|
|
568
|
+
|
|
569
|
+
result = api_instance.users_notifications_list(username, opts)
|
|
570
|
+
p result
|
|
571
|
+
rescue Weblate::ApiError => e
|
|
572
|
+
puts "Error when calling UsersApi->users_notifications_list: #{e}"
|
|
573
|
+
end
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
#### Using the users_notifications_list_with_http_info variant
|
|
577
|
+
|
|
578
|
+
This returns an Array which contains the response data, status code and headers.
|
|
579
|
+
|
|
580
|
+
> <Array(<PaginatedNotificationList>, Integer, Hash)> users_notifications_list_with_http_info(username, opts)
|
|
581
|
+
|
|
582
|
+
```ruby
|
|
583
|
+
begin
|
|
584
|
+
|
|
585
|
+
data, status_code, headers = api_instance.users_notifications_list_with_http_info(username, opts)
|
|
586
|
+
p status_code # => 2xx
|
|
587
|
+
p headers # => { ... }
|
|
588
|
+
p data # => <PaginatedNotificationList>
|
|
589
|
+
rescue Weblate::ApiError => e
|
|
590
|
+
puts "Error when calling UsersApi->users_notifications_list_with_http_info: #{e}"
|
|
591
|
+
end
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
### Parameters
|
|
595
|
+
|
|
596
|
+
| Name | Type | Description | Notes |
|
|
597
|
+
| ---- | ---- | ----------- | ----- |
|
|
598
|
+
| **username** | **String** | | |
|
|
599
|
+
| **page** | **Integer** | A page number within the paginated result set. | [optional] |
|
|
600
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
|
601
|
+
| **username2** | **String** | | [optional] |
|
|
602
|
+
|
|
603
|
+
### Return type
|
|
604
|
+
|
|
605
|
+
[**PaginatedNotificationList**](PaginatedNotificationList.md)
|
|
606
|
+
|
|
607
|
+
### Authorization
|
|
608
|
+
|
|
609
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
610
|
+
|
|
611
|
+
### HTTP request headers
|
|
612
|
+
|
|
613
|
+
- **Content-Type**: Not defined
|
|
614
|
+
- **Accept**: application/json
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
## users_notifications_partial_update
|
|
618
|
+
|
|
619
|
+
> <Notification> users_notifications_partial_update(subscription_id, username, opts)
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
Users API.
|
|
624
|
+
|
|
625
|
+
### Examples
|
|
626
|
+
|
|
627
|
+
```ruby
|
|
628
|
+
require 'time'
|
|
629
|
+
require 'weblate'
|
|
630
|
+
# setup authorization
|
|
631
|
+
Weblate.configure do |config|
|
|
632
|
+
# Configure API key authorization: tokenAuth
|
|
633
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
634
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
635
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
api_instance = Weblate::UsersApi.new
|
|
639
|
+
subscription_id = 56 # Integer |
|
|
640
|
+
username = 'username_example' # String |
|
|
641
|
+
opts = {
|
|
642
|
+
patched_notification: Weblate::PatchedNotification.new # PatchedNotification |
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
begin
|
|
646
|
+
|
|
647
|
+
result = api_instance.users_notifications_partial_update(subscription_id, username, opts)
|
|
648
|
+
p result
|
|
649
|
+
rescue Weblate::ApiError => e
|
|
650
|
+
puts "Error when calling UsersApi->users_notifications_partial_update: #{e}"
|
|
651
|
+
end
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
#### Using the users_notifications_partial_update_with_http_info variant
|
|
655
|
+
|
|
656
|
+
This returns an Array which contains the response data, status code and headers.
|
|
657
|
+
|
|
658
|
+
> <Array(<Notification>, Integer, Hash)> users_notifications_partial_update_with_http_info(subscription_id, username, opts)
|
|
659
|
+
|
|
660
|
+
```ruby
|
|
661
|
+
begin
|
|
662
|
+
|
|
663
|
+
data, status_code, headers = api_instance.users_notifications_partial_update_with_http_info(subscription_id, username, opts)
|
|
664
|
+
p status_code # => 2xx
|
|
665
|
+
p headers # => { ... }
|
|
666
|
+
p data # => <Notification>
|
|
667
|
+
rescue Weblate::ApiError => e
|
|
668
|
+
puts "Error when calling UsersApi->users_notifications_partial_update_with_http_info: #{e}"
|
|
669
|
+
end
|
|
670
|
+
```
|
|
671
|
+
|
|
672
|
+
### Parameters
|
|
673
|
+
|
|
674
|
+
| Name | Type | Description | Notes |
|
|
675
|
+
| ---- | ---- | ----------- | ----- |
|
|
676
|
+
| **subscription_id** | **Integer** | | |
|
|
677
|
+
| **username** | **String** | | |
|
|
678
|
+
| **patched_notification** | [**PatchedNotification**](PatchedNotification.md) | | [optional] |
|
|
679
|
+
|
|
680
|
+
### Return type
|
|
681
|
+
|
|
682
|
+
[**Notification**](Notification.md)
|
|
683
|
+
|
|
684
|
+
### Authorization
|
|
685
|
+
|
|
686
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
687
|
+
|
|
688
|
+
### HTTP request headers
|
|
689
|
+
|
|
690
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
691
|
+
- **Accept**: application/json
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
## users_notifications_retrieve
|
|
695
|
+
|
|
696
|
+
> <Notification> users_notifications_retrieve(subscription_id, username)
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
Users API.
|
|
701
|
+
|
|
702
|
+
### Examples
|
|
703
|
+
|
|
704
|
+
```ruby
|
|
705
|
+
require 'time'
|
|
706
|
+
require 'weblate'
|
|
707
|
+
# setup authorization
|
|
708
|
+
Weblate.configure do |config|
|
|
709
|
+
# Configure API key authorization: tokenAuth
|
|
710
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
711
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
712
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
api_instance = Weblate::UsersApi.new
|
|
716
|
+
subscription_id = 56 # Integer |
|
|
717
|
+
username = 'username_example' # String |
|
|
718
|
+
|
|
719
|
+
begin
|
|
720
|
+
|
|
721
|
+
result = api_instance.users_notifications_retrieve(subscription_id, username)
|
|
722
|
+
p result
|
|
723
|
+
rescue Weblate::ApiError => e
|
|
724
|
+
puts "Error when calling UsersApi->users_notifications_retrieve: #{e}"
|
|
725
|
+
end
|
|
726
|
+
```
|
|
727
|
+
|
|
728
|
+
#### Using the users_notifications_retrieve_with_http_info variant
|
|
729
|
+
|
|
730
|
+
This returns an Array which contains the response data, status code and headers.
|
|
731
|
+
|
|
732
|
+
> <Array(<Notification>, Integer, Hash)> users_notifications_retrieve_with_http_info(subscription_id, username)
|
|
733
|
+
|
|
734
|
+
```ruby
|
|
735
|
+
begin
|
|
736
|
+
|
|
737
|
+
data, status_code, headers = api_instance.users_notifications_retrieve_with_http_info(subscription_id, username)
|
|
738
|
+
p status_code # => 2xx
|
|
739
|
+
p headers # => { ... }
|
|
740
|
+
p data # => <Notification>
|
|
741
|
+
rescue Weblate::ApiError => e
|
|
742
|
+
puts "Error when calling UsersApi->users_notifications_retrieve_with_http_info: #{e}"
|
|
743
|
+
end
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
### Parameters
|
|
747
|
+
|
|
748
|
+
| Name | Type | Description | Notes |
|
|
749
|
+
| ---- | ---- | ----------- | ----- |
|
|
750
|
+
| **subscription_id** | **Integer** | | |
|
|
751
|
+
| **username** | **String** | | |
|
|
752
|
+
|
|
753
|
+
### Return type
|
|
754
|
+
|
|
755
|
+
[**Notification**](Notification.md)
|
|
756
|
+
|
|
757
|
+
### Authorization
|
|
758
|
+
|
|
759
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
760
|
+
|
|
761
|
+
### HTTP request headers
|
|
762
|
+
|
|
763
|
+
- **Content-Type**: Not defined
|
|
764
|
+
- **Accept**: application/json
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
## users_notifications_update
|
|
768
|
+
|
|
769
|
+
> <Notification> users_notifications_update(subscription_id, username, notification)
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
Users API.
|
|
774
|
+
|
|
775
|
+
### Examples
|
|
776
|
+
|
|
777
|
+
```ruby
|
|
778
|
+
require 'time'
|
|
779
|
+
require 'weblate'
|
|
780
|
+
# setup authorization
|
|
781
|
+
Weblate.configure do |config|
|
|
782
|
+
# Configure API key authorization: tokenAuth
|
|
783
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
784
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
785
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
api_instance = Weblate::UsersApi.new
|
|
789
|
+
subscription_id = 56 # Integer |
|
|
790
|
+
username = 'username_example' # String |
|
|
791
|
+
notification = Weblate::Notification.new({notification: Weblate::NotificationEnum::REPOSITORY_NOTIFICATION, id: 37, scope: Weblate::ScopeEnum::N0, frequency: Weblate::FrequencyEnum::N0, project: Weblate::Project.new({name: 'name_example', slug: 'slug_example', id: 37, web_url: 'web_url_example', url: 'url_example', components_list_url: 'components_list_url_example', repository_url: 'repository_url_example', statistics_url: 'statistics_url_example', categories_url: 'categories_url_example', changes_list_url: 'changes_list_url_example', languages_url: 'languages_url_example', labels_url: 'labels_url_example', credits_url: 'credits_url_example'}), component: Weblate::Component.new({name: 'name_example', slug: 'slug_example', id: 37, project: Weblate::Project.new({name: 'name_example', slug: 'slug_example', id: 37, web_url: 'web_url_example', url: 'url_example', components_list_url: 'components_list_url_example', repository_url: 'repository_url_example', statistics_url: 'statistics_url_example', categories_url: 'categories_url_example', changes_list_url: 'changes_list_url_example', languages_url: 'languages_url_example', labels_url: 'labels_url_example', credits_url: 'credits_url_example'}), repo: 'repo_example', filemask: 'filemask_example', file_format: Weblate::FileFormatEnum::APPSTORE, license_url: 'license_url_example', web_url: 'web_url_example', url: 'url_example', repository_url: 'repository_url_example', translations_url: 'translations_url_example', statistics_url: 'statistics_url_example', lock_url: 'lock_url_example', links_url: 'links_url_example', changes_list_url: 'changes_list_url_example', task_url: 'task_url_example', credits_url: 'credits_url_example', addons: ['addons_example'], linked_component: 'linked_component_example'})}) # Notification |
|
|
792
|
+
|
|
793
|
+
begin
|
|
794
|
+
|
|
795
|
+
result = api_instance.users_notifications_update(subscription_id, username, notification)
|
|
796
|
+
p result
|
|
797
|
+
rescue Weblate::ApiError => e
|
|
798
|
+
puts "Error when calling UsersApi->users_notifications_update: #{e}"
|
|
799
|
+
end
|
|
800
|
+
```
|
|
801
|
+
|
|
802
|
+
#### Using the users_notifications_update_with_http_info variant
|
|
803
|
+
|
|
804
|
+
This returns an Array which contains the response data, status code and headers.
|
|
805
|
+
|
|
806
|
+
> <Array(<Notification>, Integer, Hash)> users_notifications_update_with_http_info(subscription_id, username, notification)
|
|
807
|
+
|
|
808
|
+
```ruby
|
|
809
|
+
begin
|
|
810
|
+
|
|
811
|
+
data, status_code, headers = api_instance.users_notifications_update_with_http_info(subscription_id, username, notification)
|
|
812
|
+
p status_code # => 2xx
|
|
813
|
+
p headers # => { ... }
|
|
814
|
+
p data # => <Notification>
|
|
815
|
+
rescue Weblate::ApiError => e
|
|
816
|
+
puts "Error when calling UsersApi->users_notifications_update_with_http_info: #{e}"
|
|
817
|
+
end
|
|
818
|
+
```
|
|
819
|
+
|
|
820
|
+
### Parameters
|
|
821
|
+
|
|
822
|
+
| Name | Type | Description | Notes |
|
|
823
|
+
| ---- | ---- | ----------- | ----- |
|
|
824
|
+
| **subscription_id** | **Integer** | | |
|
|
825
|
+
| **username** | **String** | | |
|
|
826
|
+
| **notification** | [**Notification**](Notification.md) | | |
|
|
827
|
+
|
|
828
|
+
### Return type
|
|
829
|
+
|
|
830
|
+
[**Notification**](Notification.md)
|
|
831
|
+
|
|
832
|
+
### Authorization
|
|
833
|
+
|
|
834
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
835
|
+
|
|
836
|
+
### HTTP request headers
|
|
837
|
+
|
|
838
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
839
|
+
- **Accept**: application/json
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
## users_partial_update
|
|
843
|
+
|
|
844
|
+
> <BasicUser> users_partial_update(username, opts)
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
Users API.
|
|
849
|
+
|
|
850
|
+
### Examples
|
|
851
|
+
|
|
852
|
+
```ruby
|
|
853
|
+
require 'time'
|
|
854
|
+
require 'weblate'
|
|
855
|
+
# setup authorization
|
|
856
|
+
Weblate.configure do |config|
|
|
857
|
+
# Configure API key authorization: tokenAuth
|
|
858
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
859
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
860
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
861
|
+
end
|
|
862
|
+
|
|
863
|
+
api_instance = Weblate::UsersApi.new
|
|
864
|
+
username = 'username_example' # String |
|
|
865
|
+
opts = {
|
|
866
|
+
patched_basic_user: Weblate::PatchedBasicUser.new # PatchedBasicUser |
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
begin
|
|
870
|
+
|
|
871
|
+
result = api_instance.users_partial_update(username, opts)
|
|
872
|
+
p result
|
|
873
|
+
rescue Weblate::ApiError => e
|
|
874
|
+
puts "Error when calling UsersApi->users_partial_update: #{e}"
|
|
875
|
+
end
|
|
876
|
+
```
|
|
877
|
+
|
|
878
|
+
#### Using the users_partial_update_with_http_info variant
|
|
879
|
+
|
|
880
|
+
This returns an Array which contains the response data, status code and headers.
|
|
881
|
+
|
|
882
|
+
> <Array(<BasicUser>, Integer, Hash)> users_partial_update_with_http_info(username, opts)
|
|
883
|
+
|
|
884
|
+
```ruby
|
|
885
|
+
begin
|
|
886
|
+
|
|
887
|
+
data, status_code, headers = api_instance.users_partial_update_with_http_info(username, opts)
|
|
888
|
+
p status_code # => 2xx
|
|
889
|
+
p headers # => { ... }
|
|
890
|
+
p data # => <BasicUser>
|
|
891
|
+
rescue Weblate::ApiError => e
|
|
892
|
+
puts "Error when calling UsersApi->users_partial_update_with_http_info: #{e}"
|
|
893
|
+
end
|
|
894
|
+
```
|
|
895
|
+
|
|
896
|
+
### Parameters
|
|
897
|
+
|
|
898
|
+
| Name | Type | Description | Notes |
|
|
899
|
+
| ---- | ---- | ----------- | ----- |
|
|
900
|
+
| **username** | **String** | | |
|
|
901
|
+
| **patched_basic_user** | [**PatchedBasicUser**](PatchedBasicUser.md) | | [optional] |
|
|
902
|
+
|
|
903
|
+
### Return type
|
|
904
|
+
|
|
905
|
+
[**BasicUser**](BasicUser.md)
|
|
906
|
+
|
|
907
|
+
### Authorization
|
|
908
|
+
|
|
909
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
910
|
+
|
|
911
|
+
### HTTP request headers
|
|
912
|
+
|
|
913
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
914
|
+
- **Accept**: application/json
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
## users_retrieve
|
|
918
|
+
|
|
919
|
+
> <BasicUser> users_retrieve(username)
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
Users API.
|
|
924
|
+
|
|
925
|
+
### Examples
|
|
926
|
+
|
|
927
|
+
```ruby
|
|
928
|
+
require 'time'
|
|
929
|
+
require 'weblate'
|
|
930
|
+
# setup authorization
|
|
931
|
+
Weblate.configure do |config|
|
|
932
|
+
# Configure API key authorization: tokenAuth
|
|
933
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
934
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
935
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
936
|
+
end
|
|
937
|
+
|
|
938
|
+
api_instance = Weblate::UsersApi.new
|
|
939
|
+
username = 'username_example' # String |
|
|
940
|
+
|
|
941
|
+
begin
|
|
942
|
+
|
|
943
|
+
result = api_instance.users_retrieve(username)
|
|
944
|
+
p result
|
|
945
|
+
rescue Weblate::ApiError => e
|
|
946
|
+
puts "Error when calling UsersApi->users_retrieve: #{e}"
|
|
947
|
+
end
|
|
948
|
+
```
|
|
949
|
+
|
|
950
|
+
#### Using the users_retrieve_with_http_info variant
|
|
951
|
+
|
|
952
|
+
This returns an Array which contains the response data, status code and headers.
|
|
953
|
+
|
|
954
|
+
> <Array(<BasicUser>, Integer, Hash)> users_retrieve_with_http_info(username)
|
|
955
|
+
|
|
956
|
+
```ruby
|
|
957
|
+
begin
|
|
958
|
+
|
|
959
|
+
data, status_code, headers = api_instance.users_retrieve_with_http_info(username)
|
|
960
|
+
p status_code # => 2xx
|
|
961
|
+
p headers # => { ... }
|
|
962
|
+
p data # => <BasicUser>
|
|
963
|
+
rescue Weblate::ApiError => e
|
|
964
|
+
puts "Error when calling UsersApi->users_retrieve_with_http_info: #{e}"
|
|
965
|
+
end
|
|
966
|
+
```
|
|
967
|
+
|
|
968
|
+
### Parameters
|
|
969
|
+
|
|
970
|
+
| Name | Type | Description | Notes |
|
|
971
|
+
| ---- | ---- | ----------- | ----- |
|
|
972
|
+
| **username** | **String** | | |
|
|
973
|
+
|
|
974
|
+
### Return type
|
|
975
|
+
|
|
976
|
+
[**BasicUser**](BasicUser.md)
|
|
977
|
+
|
|
978
|
+
### Authorization
|
|
979
|
+
|
|
980
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
981
|
+
|
|
982
|
+
### HTTP request headers
|
|
983
|
+
|
|
984
|
+
- **Content-Type**: Not defined
|
|
985
|
+
- **Accept**: application/json
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
## users_statistics_retrieve
|
|
989
|
+
|
|
990
|
+
> <BasicUser> users_statistics_retrieve(username)
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
Users API.
|
|
995
|
+
|
|
996
|
+
### Examples
|
|
997
|
+
|
|
998
|
+
```ruby
|
|
999
|
+
require 'time'
|
|
1000
|
+
require 'weblate'
|
|
1001
|
+
# setup authorization
|
|
1002
|
+
Weblate.configure do |config|
|
|
1003
|
+
# Configure API key authorization: tokenAuth
|
|
1004
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
1005
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1006
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
1007
|
+
end
|
|
1008
|
+
|
|
1009
|
+
api_instance = Weblate::UsersApi.new
|
|
1010
|
+
username = 'username_example' # String |
|
|
1011
|
+
|
|
1012
|
+
begin
|
|
1013
|
+
|
|
1014
|
+
result = api_instance.users_statistics_retrieve(username)
|
|
1015
|
+
p result
|
|
1016
|
+
rescue Weblate::ApiError => e
|
|
1017
|
+
puts "Error when calling UsersApi->users_statistics_retrieve: #{e}"
|
|
1018
|
+
end
|
|
1019
|
+
```
|
|
1020
|
+
|
|
1021
|
+
#### Using the users_statistics_retrieve_with_http_info variant
|
|
1022
|
+
|
|
1023
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1024
|
+
|
|
1025
|
+
> <Array(<BasicUser>, Integer, Hash)> users_statistics_retrieve_with_http_info(username)
|
|
1026
|
+
|
|
1027
|
+
```ruby
|
|
1028
|
+
begin
|
|
1029
|
+
|
|
1030
|
+
data, status_code, headers = api_instance.users_statistics_retrieve_with_http_info(username)
|
|
1031
|
+
p status_code # => 2xx
|
|
1032
|
+
p headers # => { ... }
|
|
1033
|
+
p data # => <BasicUser>
|
|
1034
|
+
rescue Weblate::ApiError => e
|
|
1035
|
+
puts "Error when calling UsersApi->users_statistics_retrieve_with_http_info: #{e}"
|
|
1036
|
+
end
|
|
1037
|
+
```
|
|
1038
|
+
|
|
1039
|
+
### Parameters
|
|
1040
|
+
|
|
1041
|
+
| Name | Type | Description | Notes |
|
|
1042
|
+
| ---- | ---- | ----------- | ----- |
|
|
1043
|
+
| **username** | **String** | | |
|
|
1044
|
+
|
|
1045
|
+
### Return type
|
|
1046
|
+
|
|
1047
|
+
[**BasicUser**](BasicUser.md)
|
|
1048
|
+
|
|
1049
|
+
### Authorization
|
|
1050
|
+
|
|
1051
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
1052
|
+
|
|
1053
|
+
### HTTP request headers
|
|
1054
|
+
|
|
1055
|
+
- **Content-Type**: Not defined
|
|
1056
|
+
- **Accept**: application/json
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
## users_update
|
|
1060
|
+
|
|
1061
|
+
> <BasicUser> users_update(username, basic_user)
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
Users API.
|
|
1066
|
+
|
|
1067
|
+
### Examples
|
|
1068
|
+
|
|
1069
|
+
```ruby
|
|
1070
|
+
require 'time'
|
|
1071
|
+
require 'weblate'
|
|
1072
|
+
# setup authorization
|
|
1073
|
+
Weblate.configure do |config|
|
|
1074
|
+
# Configure API key authorization: tokenAuth
|
|
1075
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
1076
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1077
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
1078
|
+
end
|
|
1079
|
+
|
|
1080
|
+
api_instance = Weblate::UsersApi.new
|
|
1081
|
+
username = 'username_example' # String |
|
|
1082
|
+
basic_user = Weblate::BasicUser.new({id: 37, full_name: 'full_name_example', username: 'username_example'}) # BasicUser |
|
|
1083
|
+
|
|
1084
|
+
begin
|
|
1085
|
+
|
|
1086
|
+
result = api_instance.users_update(username, basic_user)
|
|
1087
|
+
p result
|
|
1088
|
+
rescue Weblate::ApiError => e
|
|
1089
|
+
puts "Error when calling UsersApi->users_update: #{e}"
|
|
1090
|
+
end
|
|
1091
|
+
```
|
|
1092
|
+
|
|
1093
|
+
#### Using the users_update_with_http_info variant
|
|
1094
|
+
|
|
1095
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1096
|
+
|
|
1097
|
+
> <Array(<BasicUser>, Integer, Hash)> users_update_with_http_info(username, basic_user)
|
|
1098
|
+
|
|
1099
|
+
```ruby
|
|
1100
|
+
begin
|
|
1101
|
+
|
|
1102
|
+
data, status_code, headers = api_instance.users_update_with_http_info(username, basic_user)
|
|
1103
|
+
p status_code # => 2xx
|
|
1104
|
+
p headers # => { ... }
|
|
1105
|
+
p data # => <BasicUser>
|
|
1106
|
+
rescue Weblate::ApiError => e
|
|
1107
|
+
puts "Error when calling UsersApi->users_update_with_http_info: #{e}"
|
|
1108
|
+
end
|
|
1109
|
+
```
|
|
1110
|
+
|
|
1111
|
+
### Parameters
|
|
1112
|
+
|
|
1113
|
+
| Name | Type | Description | Notes |
|
|
1114
|
+
| ---- | ---- | ----------- | ----- |
|
|
1115
|
+
| **username** | **String** | | |
|
|
1116
|
+
| **basic_user** | [**BasicUser**](BasicUser.md) | | |
|
|
1117
|
+
|
|
1118
|
+
### Return type
|
|
1119
|
+
|
|
1120
|
+
[**BasicUser**](BasicUser.md)
|
|
1121
|
+
|
|
1122
|
+
### Authorization
|
|
1123
|
+
|
|
1124
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
1125
|
+
|
|
1126
|
+
### HTTP request headers
|
|
1127
|
+
|
|
1128
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
1129
|
+
- **Accept**: application/json
|
|
1130
|
+
|