Skip to content

Commit d4a0045

Browse files
committed
chore: update README with API endpoints and LICENSE to Elastic-2.0
1 parent 86b24e5 commit d4a0045

5 files changed

Lines changed: 70 additions & 52 deletions

File tree

Assets/LicenseChain/Examples/AdvancedLicenseChainExample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private void InitializeSDK()
3939
var config = new LicenseChainConfig
4040
{
4141
ApiKey = "your-api-key-here",
42-
BaseUrl = "https://api.licensechain.com",
42+
BaseUrl = "https://api.licensechain.app",
4343
Timeout = 30000,
4444
Retries = 3,
4545
EnableLogging = true

Assets/LicenseChain/Scripts/Configuration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class LicenseChainConfig
1414
public string ApiKey = "";
1515

1616
[Tooltip("Base URL for the LicenseChain API")]
17-
public string BaseUrl = "https://api.licensechain.com";
17+
public string BaseUrl = "https://api.licensechain.app";
1818

1919
[Tooltip("Request timeout in milliseconds")]
2020
public int Timeout = 30000;
@@ -121,7 +121,7 @@ public static LicenseChainConfig CreateDefault()
121121
return new LicenseChainConfig
122122
{
123123
ApiKey = "",
124-
BaseUrl = "https://api.licensechain.com",
124+
BaseUrl = "https://api.licensechain.app",
125125
Timeout = 30000,
126126
Retries = 3,
127127
EnableLogging = true,

Assets/LicenseChain/Scripts/Editor/LicenseChainEditor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public static void CreateConfiguration()
163163
{
164164
var config = ScriptableObject.CreateInstance<LicenseChainConfig>();
165165
config.ApiKey = "";
166-
config.BaseUrl = "https://api.licensechain.com";
166+
config.BaseUrl = "https://api.licensechain.app";
167167
config.Timeout = 30000;
168168
config.Retries = 3;
169169
config.EnableLogging = true;
@@ -195,13 +195,13 @@ public static void CreateConfiguration()
195195
[MenuItem("LicenseChain/Open Documentation")]
196196
public static void OpenDocumentation()
197197
{
198-
Application.OpenURL("https://docs.licensechain.com");
198+
Application.OpenURL("https://docs.licensechain.app");
199199
}
200200

201201
[MenuItem("LicenseChain/Open Support")]
202202
public static void OpenSupport()
203203
{
204-
Application.OpenURL("https://support.licensechain.com");
204+
Application.OpenURL("https://support.licensechain.app");
205205
}
206206

207207
[MenuItem("LicenseChain/Clear Logs")]

LICENSE

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
MIT License
1+
Elastic License 2.0 (ELv2)
22

33
Copyright (c) 2025 LicenseChain LLC
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
This software and associated documentation files (the "Software") are provided
6+
under the Elastic License 2.0 (the "License"). You may not use this file except
7+
in compliance with the License. You may obtain a copy of the License at:
118

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
9+
https://www.elastic.co/licensing/elastic-license
10+
11+
Unless required by applicable law or agreed to in writing, software distributed
12+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
14+
specific language governing permissions and limitations under the License.
1415

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.

README.md

Lines changed: 54 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# LicenseChain Unity SDK
1+
# LicenseChain Unity SDK
22

33
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
44
[![Unity](https://img.shields.io/badge/Unity-2021.3+-blue.svg)](https://unity.com/)
@@ -7,18 +7,18 @@
77

88
Official Unity SDK for LicenseChain - Secure license management for Unity games and applications.
99

10-
## 🚀 Features
10+
## 🚀 Features
1111

12-
- **🔐 Secure Authentication** - User registration, login, and session management
13-
- **📜 License Management** - Create, validate, update, and revoke licenses
14-
- **🛡️ Hardware ID Validation** - Prevent license sharing and unauthorized access
15-
- **🔔 Webhook Support** - Real-time license events and notifications
16-
- **📊 Analytics Integration** - Track license usage and performance metrics
17-
- ** High Performance** - Optimized for Unity's runtime
18-
- **🔄 Async Operations** - Non-blocking HTTP requests and data processing
19-
- **🛠️ Easy Integration** - Simple API with comprehensive documentation
12+
- **🔐 Secure Authentication** - User registration, login, and session management
13+
- **📜 License Management** - Create, validate, update, and revoke licenses
14+
- **🛡️ Hardware ID Validation** - Prevent license sharing and unauthorized access
15+
- **🔔 Webhook Support** - Real-time license events and notifications
16+
- **📊 Analytics Integration** - Track license usage and performance metrics
17+
- **âš¡ High Performance** - Optimized for Unity's runtime
18+
- **🔄 Async Operations** - Non-blocking HTTP requests and data processing
19+
- **🛠️ Easy Integration** - Simple API with comprehensive documentation
2020

21-
## 📦 Installation
21+
## 📦 Installation
2222

2323
### Method 1: Unity Package Manager (Recommended)
2424

@@ -44,7 +44,7 @@ git submodule add https://github.com/LicenseChain/LicenseChain-Unity-SDK.git Ass
4444
git submodule update --init --recursive
4545
```
4646

47-
## 🚀 Quick Start
47+
## 🚀 Quick Start
4848

4949
### Basic Setup
5050

@@ -250,7 +250,7 @@ private IEnumerator StartWebhookListener()
250250
}
251251
```
252252

253-
## 📚 API Reference
253+
## 📚 API Reference
254254

255255
### LicenseChainClient
256256

@@ -262,7 +262,7 @@ var config = new LicenseChainConfig
262262
ApiKey = "your-api-key",
263263
AppName = "your-app-name",
264264
Version = "1.0.0",
265-
BaseUrl = "https://api.licensechain.com" // Optional
265+
BaseUrl = "https://api.licensechain.app" // Optional
266266
};
267267

268268
var client = new LicenseChainClient(config);
@@ -357,7 +357,7 @@ var trackTask = client.TrackEventAsync(eventName, properties);
357357
var analyticsTask = client.GetAnalyticsAsync(timeRange);
358358
```
359359

360-
## 🔧 Configuration
360+
## 🔧 Configuration
361361

362362
### Unity Settings
363363

@@ -372,7 +372,7 @@ public class LicenseChainSettings : ScriptableObject
372372
public string apiKey;
373373
public string appName;
374374
public string version;
375-
public string baseUrl = "https://api.licensechain.com";
375+
public string baseUrl = "https://api.licensechain.app";
376376

377377
[Header("Advanced Settings")]
378378
public int timeout = 30;
@@ -392,7 +392,7 @@ export LICENSECHAIN_APP_NAME=your-app-name
392392
export LICENSECHAIN_APP_VERSION=1.0.0
393393

394394
# Optional
395-
export LICENSECHAIN_BASE_URL=https://api.licensechain.com
395+
export LICENSECHAIN_BASE_URL=https://api.licensechain.app
396396
export LICENSECHAIN_DEBUG=true
397397
```
398398

@@ -404,15 +404,15 @@ var config = new LicenseChainConfig
404404
ApiKey = "your-api-key",
405405
AppName = "your-app-name",
406406
Version = "1.0.0",
407-
BaseUrl = "https://api.licensechain.com",
407+
BaseUrl = "https://api.licensechain.app",
408408
Timeout = 30, // Request timeout in seconds
409409
Retries = 3, // Number of retry attempts
410410
Debug = false, // Enable debug logging
411411
UserAgent = "MyGame/1.0.0" // Custom user agent
412412
};
413413
```
414414

415-
## 🛡️ Security Features
415+
## 🛡️ Security Features
416416

417417
### Hardware ID Protection
418418

@@ -440,7 +440,7 @@ var validateTask = client.ValidateHardwareIdAsync(licenseKey, hardwareId);
440440
- Expiration checking
441441
- Feature-based access control
442442

443-
## 📊 Analytics and Monitoring
443+
## 📊 Analytics and Monitoring
444444

445445
### Event Tracking
446446

@@ -478,7 +478,7 @@ if (metricsTask.IsCompletedSuccessfully)
478478
}
479479
```
480480

481-
## 🔄 Error Handling
481+
## 🔄 Error Handling
482482

483483
### Custom Exception Types
484484

@@ -519,7 +519,7 @@ var config = new LicenseChainConfig
519519
};
520520
```
521521

522-
## 🧪 Testing
522+
## 🧪 Testing
523523

524524
### Unit Tests
525525

@@ -536,15 +536,15 @@ Unity -batchmode -quit -projectPath . -runTests -testResults results.xml
536536
# Use Unity Test Runner with integration test category
537537
```
538538

539-
## 📝 Examples
539+
## 📝 Examples
540540

541541
See the `Examples/` directory for complete examples:
542542

543543
- `LicenseChainExample.cs` - Basic SDK usage
544544
- `AdvancedFeaturesExample.cs` - Advanced features and configuration
545545
- `WebhookIntegrationExample.cs` - Webhook handling
546546

547-
## 🤝 Contributing
547+
## 🤝 Contributing
548548

549549
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
550550

@@ -556,23 +556,47 @@ We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) f
556556
4. Install dependencies
557557
5. Run tests in Unity Test Runner
558558

559-
## 📄 License
559+
## 📄 License
560560

561561
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
562562

563-
## 🆘 Support
563+
## 🆘 Support
564564

565-
- **Documentation**: [https://docs.licensechain.com/unity](https://docs.licensechain.com/unity)
565+
- **Documentation**: [https://docs.licensechain.app/unity](https://docs.licensechain.app/unity)
566566
- **Issues**: [GitHub Issues](https://github.com/LicenseChain/LicenseChain-Unity-SDK/issues)
567567
- **Discord**: [LicenseChain Discord](https://discord.gg/licensechain)
568-
- **Email**: support@licensechain.com
568+
- **Email**: support@licensechain.app
569569

570-
## 🔗 Related Projects
570+
## 🔗 Related Projects
571571

572572
- [LicenseChain C# SDK](https://github.com/LicenseChain/LicenseChain-CSharp-SDK)
573573
- [LicenseChain JavaScript SDK](https://github.com/LicenseChain/LicenseChain-JavaScript-SDK)
574574
- [LicenseChain Customer Panel](https://github.com/LicenseChain/LicenseChain-Customer-Panel)
575575

576576
---
577577

578-
**Made with ❤️ for the Unity community**
578+
**Made with ❤️ for the Unity community**
579+
580+
581+
## API Endpoints
582+
583+
All endpoints automatically use the /v1 prefix when connecting to https://api.licensechain.app.
584+
585+
### Base URL
586+
- **Production**: https://api.licensechain.app/v1\n- **Development**: https://api.licensechain.app/v1\n\n### Available Endpoints
587+
588+
| Method | Endpoint | Description |
589+
|--------|----------|-------------|
590+
| GET | /v1/health | Health check |
591+
| POST | /v1/auth/login | User login |
592+
| POST | /v1/auth/register | User registration |
593+
| GET | /v1/apps | List applications |
594+
| POST | /v1/apps | Create application |
595+
| GET | /v1/licenses | List licenses |
596+
| POST | /v1/licenses/verify | Verify license |
597+
| GET | /v1/webhooks | List webhooks |
598+
| POST | /v1/webhooks | Create webhook |
599+
| GET | /v1/analytics | Get analytics |
600+
601+
**Note**: The SDK automatically prepends /v1 to all endpoints, so you only need to specify the path (e.g., /auth/login instead of /v1/auth/login).
602+

0 commit comments

Comments
 (0)