Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 82232ba

Browse files
author
bublili
committed
Update package and namespace according to the conventions
1 parent 05d8b6a commit 82232ba

File tree

430 files changed

+2918
-2918
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

430 files changed

+2918
-2918
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ composer require autodesk-forge/client
2424
Download the files and include `autoload.php`:
2525

2626
```php
27-
require_once('/path/to/AutodeskForge/autoload.php');
27+
require_once('/path/to/ForgeClient/autoload.php');
2828
```
2929

3030
## Tutorial
@@ -48,11 +48,11 @@ To get a 2-legged token run the following code. Note that you need to replace `y
4848
```php
4949
<?php
5050

51-
AutodeskForge\Auth\Configuration::getDefaultConfiguration()
51+
Autodesk\Auth\Configuration::getDefaultConfiguration()
5252
->setClientId('<your-client-id>')
5353
->setClientSecret('<your-client-secret>');
5454

55-
$twoLeggedAuth = new AutodeskForge\Auth\OAuth2\TwoLeggedAuth();
55+
$twoLeggedAuth = new Autodesk\Auth\OAuth2\TwoLeggedAuth();
5656
$twoLeggedAuth->setScopes(['bucket:read']);
5757

5858
$twoLeggedAuth->fetchToken();
@@ -77,12 +77,12 @@ Note that the redirect URL must match the callback URL you provided when you cre
7777
```php
7878
<?php
7979

80-
AutodeskForge\Auth\Configuration::getDefaultConfiguration()
80+
Autodesk\Auth\Configuration::getDefaultConfiguration()
8181
->setClientId('<your-client-id>')
8282
->setClientSecret('<your-client-secret>')
8383
->setRedirectUrl('<your-redirect-url>');
8484

85-
$threeLeggedAuth = new AutodeskForge\Auth\OAuth2\ThreeLeggedAuth();
85+
$threeLeggedAuth = new Autodesk\Auth\OAuth2\ThreeLeggedAuth();
8686
$threeLeggedAuth->addScope('code:all');
8787

8888
$authUrl = $threeLeggedAuth->createAuthUrl();
@@ -103,12 +103,12 @@ Request an access token using the authorization code you received, as shown belo
103103
```php
104104
<?php
105105

106-
AutodeskForge\Auth\Configuration::getDefaultConfiguration()
106+
Autodesk\Auth\Configuration::getDefaultConfiguration()
107107
->setClientId('<your-client-id>')
108108
->setClientSecret('<your-client-secret>')
109109
->setRedirectUrl('<your-redirect-url>');
110110

111-
$threeLeggedAuth = new AutodeskForge\Auth\OAuth2\ThreeLeggedAuth();
111+
$threeLeggedAuth = new Autodesk\Auth\OAuth2\ThreeLeggedAuth();
112112
$threeLeggedAuth->addScope('code:all');
113113

114114
$threeLeggedAuth->fetchToken($_GET['code']);
@@ -132,8 +132,8 @@ Use the `TwoLeggedAuth` object or the `ThreeLeggedAuth` object to call the Forge
132132
<?php
133133

134134

135-
$apiInstance = new AutodeskForge\Client\Api\ActivitiesApi($threeLeggedAuth);
136-
$activity = new \AutodeskForge\Client\Model\Activity(); // \AutodeskForge\Client\Model\Activity
135+
$apiInstance = new Autodesk\Forge\Client\Api\ActivitiesApi($threeLeggedAuth);
136+
$activity = new \Autodesk\Forge\Client\Model\Activity(); // \Autodesk\Forge\Client\Model\Activity
137137

138138
$result = $apiInstance->createActivity($activity);
139139
```

autoload.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
* An example of a project-specific implementation.
1616
*
1717
* After registering this autoload function with SPL, the following line
18-
* would cause the function to attempt to load the \AutodeskForge\Client\Baz\Qux class
18+
* would cause the function to attempt to load the \Autodesk\Forge\Client\Baz\Qux class
1919
* from /path/to/project/lib/Baz/Qux.php:
2020
*
21-
* new \AutodeskForge\Client\Baz\Qux;
21+
* new \Autodesk\Forge\Client\Baz\Qux;
2222
*
2323
* @param string $class The fully-qualified class name.
2424
*
@@ -27,7 +27,7 @@
2727
spl_autoload_register(function ($class) {
2828

2929
// project-specific namespace prefix
30-
$prefix = 'AutodeskForge\\Client\\';
30+
$prefix = 'Autodesk\\Forge\\Client\\';
3131

3232
// base directory for the namespace prefix
3333
$base_dir = __DIR__ . '/lib/';

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "autodesk-forge/client",
2+
"name": "autodesk/forge-client",
33
"version": "1.0",
44
"description": "",
55
"keywords": [
@@ -8,7 +8,7 @@
88
"sdk",
99
"api"
1010
],
11-
"homepage": "https://github.com/Autodesk-Forge/forge-api-php-client",
11+
"homepage": "https://github.com/Autodesk-Forge/forge-php-client",
1212
"license": "Apache 2.0",
1313
"authors": [
1414
{
@@ -21,7 +21,7 @@
2121
"ext-curl": "*",
2222
"ext-json": "*",
2323
"ext-mbstring": "*",
24-
"autodesk-forge/core": "^1.0"
24+
"autodesk/core": "^1.0"
2525
},
2626
"require-dev": {
2727
"phpunit/phpunit": "~4.8",
@@ -32,12 +32,12 @@
3232
},
3333
"autoload": {
3434
"psr-4": {
35-
"AutodeskForge\\Client\\": "lib/"
35+
"Autodesk\\Forge\\Client\\": "lib/"
3636
}
3737
},
3838
"autoload-dev": {
3939
"psr-4": {
40-
"AutodeskForge\\Client\\": "test/"
40+
"Autodesk\\Forge\\Client\\": "test/"
4141
}
4242
}
4343
}

composer.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Api/ActivitiesApi.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AutodeskForge\Client\ActivitiesApi
1+
# Autodesk\Forge\Client\ActivitiesApi
22

33
All URIs are relative to *https://developer.api.autodesk.com*
44

@@ -15,7 +15,7 @@ Method | HTTP request | Description
1515

1616

1717
# **createActivity**
18-
> \AutodeskForge\Client\Model\Activity createActivity($activity)
18+
> \Autodesk\Forge\Client\Model\Activity createActivity($activity)
1919
2020
Creates a new Activity.
2121

@@ -24,8 +24,8 @@ Creates a new Activity.
2424
<?php
2525
require_once(__DIR__ . '/vendor/autoload.php');
2626

27-
$apiInstance = new AutodeskForge\Client\Api\ActivitiesApi($authObject);
28-
$activity = new \AutodeskForge\Client\Model\Activity(); // \AutodeskForge\Client\Model\Activity |
27+
$apiInstance = new Autodesk\Forge\Client\Api\ActivitiesApi($authObject);
28+
$activity = new \Autodesk\Forge\Client\Model\Activity(); // \Autodesk\Forge\Client\Model\Activity |
2929

3030
try {
3131
$result = $apiInstance->createActivity($activity);
@@ -40,11 +40,11 @@ try {
4040

4141
Name | Type | Description | Notes
4242
------------- | ------------- | ------------- | -------------
43-
**activity** | [**\AutodeskForge\Client\Model\Activity**](../Model/\AutodeskForge\Client\Model\Activity.md)| |
43+
**activity** | [**\Autodesk\Forge\Client\Model\Activity**](../Model/\Autodesk\Forge\Client\Model\Activity.md)| |
4444

4545
### Return type
4646

47-
[**\AutodeskForge\Client\Model\Activity**](../Model/Activity.md)
47+
[**\Autodesk\Forge\Client\Model\Activity**](../Model/Activity.md)
4848

4949
### Authorization
5050

@@ -67,7 +67,7 @@ Removes a specific Activity.
6767
<?php
6868
require_once(__DIR__ . '/vendor/autoload.php');
6969

70-
$apiInstance = new AutodeskForge\Client\Api\ActivitiesApi($authObject);
70+
$apiInstance = new Autodesk\Forge\Client\Api\ActivitiesApi($authObject);
7171
$id = "id_example"; // string |
7272

7373
try {
@@ -109,7 +109,7 @@ Removes the version history of the specified Activity.
109109
<?php
110110
require_once(__DIR__ . '/vendor/autoload.php');
111111

112-
$apiInstance = new AutodeskForge\Client\Api\ActivitiesApi($authObject);
112+
$apiInstance = new Autodesk\Forge\Client\Api\ActivitiesApi($authObject);
113113
$id = "id_example"; // string |
114114

115115
try {
@@ -142,7 +142,7 @@ void (empty response body)
142142
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
143143

144144
# **getActivity**
145-
> \AutodeskForge\Client\Model\Activity getActivity($id)
145+
> \Autodesk\Forge\Client\Model\Activity getActivity($id)
146146
147147
Returns the details of a specific Activity.
148148

@@ -151,7 +151,7 @@ Returns the details of a specific Activity.
151151
<?php
152152
require_once(__DIR__ . '/vendor/autoload.php');
153153

154-
$apiInstance = new AutodeskForge\Client\Api\ActivitiesApi($authObject);
154+
$apiInstance = new Autodesk\Forge\Client\Api\ActivitiesApi($authObject);
155155
$id = "id_example"; // string |
156156

157157
try {
@@ -171,7 +171,7 @@ Name | Type | Description | Notes
171171

172172
### Return type
173173

174-
[**\AutodeskForge\Client\Model\Activity**](../Model/Activity.md)
174+
[**\Autodesk\Forge\Client\Model\Activity**](../Model/Activity.md)
175175

176176
### Authorization
177177

@@ -185,7 +185,7 @@ Name | Type | Description | Notes
185185
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
186186

187187
# **getActivityVersions**
188-
> \AutodeskForge\Client\Model\DesignAutomationActivities getActivityVersions($id)
188+
> \Autodesk\Forge\Client\Model\DesignAutomationActivities getActivityVersions($id)
189189
190190
Returns all old versions of a specified Activity.
191191

@@ -194,7 +194,7 @@ Returns all old versions of a specified Activity.
194194
<?php
195195
require_once(__DIR__ . '/vendor/autoload.php');
196196

197-
$apiInstance = new AutodeskForge\Client\Api\ActivitiesApi($authObject);
197+
$apiInstance = new Autodesk\Forge\Client\Api\ActivitiesApi($authObject);
198198
$id = "id_example"; // string |
199199

200200
try {
@@ -214,7 +214,7 @@ Name | Type | Description | Notes
214214

215215
### Return type
216216

217-
[**\AutodeskForge\Client\Model\DesignAutomationActivities**](../Model/DesignAutomationActivities.md)
217+
[**\Autodesk\Forge\Client\Model\DesignAutomationActivities**](../Model/DesignAutomationActivities.md)
218218

219219
### Authorization
220220

@@ -228,7 +228,7 @@ Name | Type | Description | Notes
228228
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
229229

230230
# **getAllActivities**
231-
> \AutodeskForge\Client\Model\DesignAutomationActivities getAllActivities()
231+
> \Autodesk\Forge\Client\Model\DesignAutomationActivities getAllActivities()
232232
233233
Returns the details of all Activities.
234234

@@ -237,7 +237,7 @@ Returns the details of all Activities.
237237
<?php
238238
require_once(__DIR__ . '/vendor/autoload.php');
239239

240-
$apiInstance = new AutodeskForge\Client\Api\ActivitiesApi($authObject);
240+
$apiInstance = new Autodesk\Forge\Client\Api\ActivitiesApi($authObject);
241241

242242
try {
243243
$result = $apiInstance->getAllActivities();
@@ -253,7 +253,7 @@ This endpoint does not need any parameter.
253253

254254
### Return type
255255

256-
[**\AutodeskForge\Client\Model\DesignAutomationActivities**](../Model/DesignAutomationActivities.md)
256+
[**\Autodesk\Forge\Client\Model\DesignAutomationActivities**](../Model/DesignAutomationActivities.md)
257257

258258
### Authorization
259259

@@ -276,9 +276,9 @@ Updates an Activity by specifying only the changed attributes.
276276
<?php
277277
require_once(__DIR__ . '/vendor/autoload.php');
278278

279-
$apiInstance = new AutodeskForge\Client\Api\ActivitiesApi($authObject);
279+
$apiInstance = new Autodesk\Forge\Client\Api\ActivitiesApi($authObject);
280280
$id = "id_example"; // string |
281-
$activity = new \AutodeskForge\Client\Model\ActivityOptional(); // \AutodeskForge\Client\Model\ActivityOptional |
281+
$activity = new \Autodesk\Forge\Client\Model\ActivityOptional(); // \Autodesk\Forge\Client\Model\ActivityOptional |
282282

283283
try {
284284
$apiInstance->patchActivity($id, $activity);
@@ -293,7 +293,7 @@ try {
293293
Name | Type | Description | Notes
294294
------------- | ------------- | ------------- | -------------
295295
**id** | **string**| |
296-
**activity** | [**\AutodeskForge\Client\Model\ActivityOptional**](../Model/\AutodeskForge\Client\Model\ActivityOptional.md)| |
296+
**activity** | [**\Autodesk\Forge\Client\Model\ActivityOptional**](../Model/\Autodesk\Forge\Client\Model\ActivityOptional.md)| |
297297

298298
### Return type
299299

@@ -320,9 +320,9 @@ Sets the Activity to the specified version.
320320
<?php
321321
require_once(__DIR__ . '/vendor/autoload.php');
322322

323-
$apiInstance = new AutodeskForge\Client\Api\ActivitiesApi($authObject);
323+
$apiInstance = new Autodesk\Forge\Client\Api\ActivitiesApi($authObject);
324324
$id = "id_example"; // string |
325-
$activity_version = new \AutodeskForge\Client\Model\ActivityVersion(); // \AutodeskForge\Client\Model\ActivityVersion |
325+
$activity_version = new \Autodesk\Forge\Client\Model\ActivityVersion(); // \Autodesk\Forge\Client\Model\ActivityVersion |
326326

327327
try {
328328
$apiInstance->setActivityVersion($id, $activity_version);
@@ -337,7 +337,7 @@ try {
337337
Name | Type | Description | Notes
338338
------------- | ------------- | ------------- | -------------
339339
**id** | **string**| |
340-
**activity_version** | [**\AutodeskForge\Client\Model\ActivityVersion**](../Model/\AutodeskForge\Client\Model\ActivityVersion.md)| |
340+
**activity_version** | [**\Autodesk\Forge\Client\Model\ActivityVersion**](../Model/\Autodesk\Forge\Client\Model\ActivityVersion.md)| |
341341

342342
### Return type
343343

0 commit comments

Comments
 (0)