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/ )
77
88Official 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
4444git 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
268268var client = new LicenseChainClient (config );
@@ -357,7 +357,7 @@ var trackTask = client.TrackEventAsync(eventName, properties);
357357var 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
392392export 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
396396export 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
541541See 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
549549We 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
5565564 . Install dependencies
5575575 . Run tests in Unity Test Runner
558558
559- ## 📄 License
559+ ## 📄 License
560560
561561This 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