أنت الآن بصدد الاطّلاع على مستندات Apigee Edge.
انتقِل إلى
مستندات Apigee X. info
مقدمة
كجزء من عملية الإعداد الأوّلية لتحقيق الربح في مؤسستك، ينفّذ فريق إعداد Apigee Edge نصًا برمجيًا تتم مزامنته مع عملية تحقيق الربح في مؤسستك وأي مطوّرين وتطبيقات ومنتجات أنشأتها باستخدام "خدمات واجهة برمجة التطبيقات" في Edge.
بعد فترة من الوقت (مثل بضعة أشهر) وبشكل دوري بعد ذلك، ننصحك بإعادة مزامنة هذه البيانات مع تحقيق الربح للتأكّد من أنّ البيانات متزامنة. يمكنك مزامنة ما يلي:
مزامنة مؤسستك باستخدام واجهة برمجة التطبيقات
لمزامنة مؤسستك، أرسِل طلب استرداد بيانات باستخدام GET إلى /organizations/{org_name}/sync-organization. عند مزامنة مؤسستك، يمكنك أيضًا مزامنة كل المنتجات والمطوّرين والتطبيقات في المؤسسة من خلال تحديد childEntities=true كمعلَمة طلب بحث وقيمة.
على سبيل المثال، يؤدي الطلب التالي إلى مزامنة المؤسسة ومزامنة جميع المنتجات والمطوّرين والتطبيقات في المؤسسة:
$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-organization?childEntities=true" \
-u email:password
من المفترض أن يظهر الرد على النحو التالي (يتم عرض جزء من الرد فقط):
Synchronization 4G organization with mint, started at, Mon Sep 09 17:48:22 UTC 2013 Child entities sync is, true Synchronizing {org_name} Organization found in mint, merging... Saving {org_name} Saved Synchronization 4G products with mint, started at, Mon Sep 09 17:45:26 UTC 2013 Found 4 products. Synchronizing location Product found in mint, merging... Saving location Saved location Synchronizing search Product found in mint, merging... Saving search Saved search Synchronizing messaging Product found in mint, merging... Saving messaging Saved messaging Synchronizing payment Product found in mint, merging... Saving payment Saved payment Synchronization job finished at, Mon Sep 09 17:45:26 UTC 2013 Synchronization 4G products with mint, started at, Mon Sep 09 17:33:20 UTC 2013 Found 11 developers. Synchronizing dev51@myorg.com Developer found in mint, merging... Saving dev51@myorg.com Saved dev51@myorg.com ... Synchronization job finished at, Mon Sep 09 17:33:31 UTC 2013 Synchronization 4G products with mint, started at, Mon Sep 09 17:15:32 UTC 2013 Found 6 applications. Synchronizing dev-four-test-app Application found in mint, merging... Saving dev-four-test-app Saved dev-four-test-app ... Synchronization job finished at, Mon Sep 09 17:15:34 UTC 2013
مزامنة المنتجات باستخدام واجهة برمجة التطبيقات
لمزامنة المنتجات، أرسِل طلب استرداد بيانات باستخدام GET إلى /organizations/{org_name}/sync-products. على سبيل المثال:
$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-products" \
-u email:password
مزامنة المطوّرين باستخدام واجهة برمجة التطبيقات
لمزامنة المطوّرين، أرسِل طلب استرداد بيانات باستخدام GET إلى /organizations/{org_name}/sync-developers. على سبيل المثال:
$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-developers" \
-u email:password
مزامنة التطبيقات باستخدام واجهة برمجة التطبيقات
لمزامنة التطبيقات، أرسِل طلب استرداد بيانات باستخدام GET إلى /organizations/{org_name}/sync-applications. على سبيل المثال:
$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-applications" \
-u email:password