Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringlengths
14
66
response
stringlengths
39
245
question
stringlengths
23
88
answer
stringlengths
91
771
explanation
stringlengths
35
140
instructions
stringlengths
31
156
section
stringclasses
12 values
text
stringlengths
78
1.01k
من هو إبراهيم الأصفر؟
إبراهيم ماجد محمد الأصفر هو مطور ويب Full Stack ومؤسس منصة MGZon AI، منصة تجارة إلكترونية ذكية مستوحاة من Amazon وShopify، ويمتلك خبرة أكثر من 5 سنوات في تطوير البرمجيات.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
Who is Ibrahim Al-Asfar?
Ibrahim Maged Mohamed Al-Asfar is a Full Stack Web Developer and the founder of MGZon AI, an AI-driven e-commerce platform inspired by Amazon and Shopify, with over 5 years of programming experience.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي منصة MGZon AI؟
MGZon AI هي منصة تجارة إلكترونية بتقنيات ذكاء اصطناعي توفر تجربة تسوق مخصصة ومتاجر مخصصة للبائعين، مع تكامل للدفع، التخزين (في الولايات المتحدة، كندا، الصين)، الدروب شيبنج، والتسويق.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What is MGZon AI?
MGZon AI is an AI-driven e-commerce platform inspired by Amazon and Shopify, offering personalized shopping experiences and dedicated vendor stores, with integrations for payment, warehousing (U.S., Canada, China), dropshipping, and marketing.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
مين اللي بيعمل منصة زي Amazon؟
إبراهيم الأصفر، مؤسس MGZon AI، منصة تجارة إلكترونية ذكية مستوحاة من Amazon وShopify.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
Who’s behind a cool e-commerce platform?
Ibrahim Al-Asfar, the founder of MGZon AI, an AI-driven e-commerce platform inspired by Amazon and Shopify.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي مهارات إبراهيم التقنية؟
إبراهيم يمتلك مهارات في HTML5، CSS3، JavaScript، TypeScript، Python، PHP، React، Node.js، Django، MongoDB، PostgreSQL، SQL، Git، Docker، Linux، تصميم UX/UI، تكامل API، وتحسين محركات البحث (SEO).
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What are Ibrahim’s technical skills?
Ibrahim is skilled in HTML5, CSS3, JavaScript, TypeScript, Python, PHP, React, Node.js, Django, MongoDB, PostgreSQL, SQL, Git, Docker, Linux, UX/UI design, API integration, and Search Engine Optimization (SEO).
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي المشاريع التي عمل عليها إبراهيم؟
إبراهيم عمل على منصة MGZon AI، متاجر إلكترونية، مواقع تعليمية، وتطبيقات إدارة مهام، مع التركيز على القابلية للتوسع وتجربة المستخدم.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What projects has Ibrahim worked on?
Ibrahim has worked on MGZon AI, e-commerce platforms, educational websites, and task management applications, focusing on scalability and user experience.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي خبرة إبراهيم العملية؟
إبراهيم لديه أكثر من 5 سنوات خبرة، بما في ذلك تأسيس MGZon AI (2023-الآن)، العمل الحر كمطور ويب (2020-2023)، وتدريب داخلي غير مدفوع في USBank (2022).
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What is Ibrahim’s work experience?
Ibrahim has over 5 years of experience, including founding MGZon AI (2023-present), freelancing as a web developer (2020-2023), and an unpaid internship at USBank (2022).
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي شهادة إبراهيم الدراسية؟
إبراهيم حاصل على بكالوريوس نظم المعلومات من كلية الحاسبات والمعلومات، جامعة الإسكندرية (2020-2023) بتقدير جيد جدًا.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What is Ibrahim’s education?
Ibrahim holds a Bachelor of Information Systems from Alexandria University, Faculty of Computers and Information (2020–2023), with a grade of Very Good.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي اللغات التي يتحدثها إبراهيم؟
إبراهيم يتحدث العربية (اللغة الأم) والإنجليزية (مستوى متوسط).
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What languages does Ibrahim speak?
Ibrahim speaks Arabic (native) and English (intermediate).
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي إنجازات إبراهيم على GitHub؟
إبراهيم حصل على Pull Shark لمساهمات كبيرة في مشاريع مفتوحة المصدر، YOLO لإرسال كوميتس بدون مراجعة، وQuickdraw لتسوية طلبات السحب بسرعة.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What are Ibrahim’s GitHub achievements?
Ibrahim has earned Pull Shark for significant open-source contributions, YOLO for pushing commits without review, and Quickdraw for rapid pull request resolutions.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هو الهدف المهني لإبراهيم؟
إبراهيم يهدف إلى جعل MGZon AI منصة رائدة في التجارة الإلكترونية، وهو يعمل على تسجيلها كشركة في الولايات المتحدة.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What is Ibrahim’s career objective?
Ibrahim aims to establish MGZon AI as a leading e-commerce platform, currently working on registering it as a U.S.-based company.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
كيف يمكن التواصل مع إبراهيم؟
يمكن التواصل مع إبراهيم عبر البريد الإلكتروني: marklasfar@gmail.com أو الهاتف: +201212444617.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
How can I contact Ibrahim?
You can contact Ibrahim via email at marklasfar@gmail.com or by phone at +20 1212444617.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
أين يعيش إبراهيم؟
إبراهيم يعيش في الزقازيق، الشرقية، مصر.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
Where does Ibrahim live?
Ibrahim lives in Zagazig, Sharqia, Egypt.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي التقنيات التي استخدمها إبراهيم في MGZon AI؟
إبراهيم استخدم TypeScript، MongoDB، Django، مع التركيز على القابلية للتوسع وتجربة المستخدم.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What technologies did Ibrahim use for MGZon AI?
Ibrahim used TypeScript, MongoDB, Django, focusing on scalability and user experience.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
مين مطور ويب شاطر؟
إبراهيم الأصفر مطور ويب Full Stack بمهارات قوية في TypeScript، React، Django، وMongoDB، ومؤسس منصة MGZon AI.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
Who’s a skilled web developer?
Ibrahim Al-Asfar is a skilled Full Stack Web Developer with expertise in TypeScript, React, Django, and MongoDB, and the founder of MGZon AI.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي الدورات التي أخذها إبراهيم؟
إبراهيم أخذ دورات من FreeCodeCamp في تطوير الويب وJavaScript، بالإضافة إلى دورات أونلاين في Python، React، وTypeScript.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What courses has Ibrahim taken?
Ibrahim completed FreeCodeCamp certifications in Web Development and JavaScript, as well as online courses in Python, React, and TypeScript.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هو اقتباس إبراهيم المفضل؟
'إذا أردت وضع هدف، ضعه عند النجوم. لأنه حتى لو خسرت هذا الهدف، ستصل بالتأكيد إلى القمر. حافز نفسك دائمًا لأنك تستحق أن تكون الأفضل.'
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What is Ibrahim’s favorite quote?
'If you want to set a goal, set it at the stars. Because even if you lose this goal, you will definitely reach the moon. Motivate yourself constantly because you deserve to be the best.'
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي خبرة إبراهيم في العمل الحر؟
إبراهيم عمل كمطور ويب حر من 2020 إلى 2023، وقام بتطوير متاجر إلكترونية مع تكامل API، مع التركيز على القابلية للتوسع والكفاءة.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What is Ibrahim’s freelance experience?
Ibrahim worked as a freelance web developer from 2020 to 2023, developing e-commerce platforms with API integrations, focusing on scalability and efficiency.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ماذا تعلم إبراهيم من تدريبه في USBank؟
إبراهيم اكتسب خبرة في الأنظمة المالية وتكامل API خلال تدريب غير مدفوع في USBank عام 2022.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What did Ibrahim learn from his USBank internship?
Ibrahim gained experience in financial systems and API integration during an unpaid internship at USBank in 2022.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي المهارات الشخصية لإبراهيم؟
إبراهيم يمتلك مهارات في التخطيط الاستراتيجي، حل المشكلات، التواصل البناء، اكتساب العملاء، العمل الجماعي، وإدارة الوقت.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What are Ibrahim’s soft skills?
Ibrahim has skills in strategic planning, problem-solving, persuasive communication, client acquisition, teamwork, and time management.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
مين بيعرف يستخدم Docker؟
إبراهيم الأصفر بيعرف يستخدم Docker بكفاءة كجزء من مهاراته في تطوير الويب وإدارة المشاريع.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
Who knows how to use Docker?
Ibrahim Al-Asfar is proficient in using Docker as part of his web development and project management skills.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي أهداف MGZon AI؟
MGZon AI تهدف إلى أن تكون منصة تجارة إلكترونية رائدة عالميًا باستخدام الذكاء الاصطناعي لتوفير تجربة تسوق مخصصة.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What are the goals of MGZon AI?
MGZon AI aims to become a leading global e-commerce platform using AI to provide personalized shopping experiences.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
كيف يمكنني الوصول إلى مشاريع إبراهيم؟
يمكنك زيارة مستودعات إبراهيم على GitHub عبر الرابط: github.com/Mark-Lasfar.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
How can I access Ibrahim’s projects?
You can visit Ibrahim’s repositories on GitHub at github.com/Mark-Lasfar.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
مين بيعرف يعمل مواقع تعليمية؟
إبراهيم الأصفر عمل على مواقع تعليمية كجزء من مشاريعه، مع التركيز على تجربة المستخدم والقابلية للتوسع.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
Who can build educational websites?
Ibrahim Al-Asfar has built educational websites as part of his projects, focusing on user experience and scalability.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي التقنيات التي يستخدمها إبراهيم في تطوير الواجهات؟
إبراهيم يستخدم React وTypeScript لتطوير واجهات مستخدم تفاعلية وسهلة الاستخدام.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What technologies does Ibrahim use for frontend development?
Ibrahim uses React and TypeScript for developing interactive and user-friendly interfaces.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هو دور إبراهيم في MGZon AI؟
إبراهيم هو المؤسس والمطور الرئيسي لـ MGZon AI، وهو المسؤول عن بناء البنية التحتية للمنصة.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What is Ibrahim’s role in MGZon AI?
Ibrahim is the founder and lead developer of MGZon AI, responsible for building the platform’s infrastructure.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
مين بيعرف يعمل تكامل API؟
إبراهيم الأصفر لديه خبرة قوية في تكامل API، كما هو موضح في مشاريعه مثل MGZon AI وأعمال العمل الحر.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
Who knows how to do API integration?
Ibrahim Al-Asfar has strong experience in API integration, as shown in projects like MGZon AI and his freelance work.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي خبرة إبراهيم في Linux؟
إبراهيم يستخدم أنظمة Linux وتدفقات العمل عبر الـ Terminal للتطوير، النشر، والتحسين.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What is Ibrahim’s experience with Linux?
Ibrahim uses Linux systems and terminal-based workflows for development, deployment, and optimization.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي الجامعة التي تخرج منها إبراهيم؟
إبراهيم تخرج من كلية الحاسبات والمعلومات، جامعة الإسكندرية.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
Which university did Ibrahim graduate from?
Ibrahim graduated from the Faculty of Computers and Information, Alexandria University.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
مين بيعرف يعمل SEO؟
إبراهيم الأصفر لديه خبرة في تحسين محركات البحث (SEO) كجزء من مهاراته في تطوير الويب.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
Who knows SEO?
Ibrahim Al-Asfar has experience in Search Engine Optimization (SEO) as part of his web development skills.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي التقنيات التي يستخدمها إبراهيم في تطوير الخلفية؟
إبراهيم يستخدم Django، Node.js، MongoDB، وPostgreSQL لتطوير الخلفية.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What technologies does Ibrahim use for backend development?
Ibrahim uses Django, Node.js, MongoDB, and PostgreSQL for backend development.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هي مهارات إبراهيم في إدارة المشاريع؟
إبراهيم يمتلك مهارات في التخطيط المعقد للمشاريع وإدارة الوقت، كما هو موضح في عمله على MGZon AI.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What are Ibrahim’s project management skills?
Ibrahim has skills in complex project planning and time management, as demonstrated in his work on MGZon AI.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ما هو مشروع MGZon-AI على GitHub؟
MGZon-AI هو مستودع على GitHub يحتوي على الكود المصدري لمنصة MGZon AI، منصة تجارة إلكترونية ذكية مكتوبة بـ TypeScript وDjango. الرابط: https://github.com/Mark-Lasfar/MGZon-AI.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What is the MGZon-AI project on GitHub?
MGZon-AI is a GitHub repository containing the source code for MGZon AI, an AI-driven e-commerce platform written in TypeScript and Django. URL: https://github.com/Mark-Lasfar/MGZon-AI.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ايه اللي بيعمله مستودع Task-Manager؟
Task-Manager هو مستودع على GitHub لتطبيق إدارة مهام، مكتوب بـ React وNode.js، يساعد المستخدمين على تنظيم المهام. الرابط: https://github.com/Mark-Lasfar/Task-Manager.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What does the Task-Manager repository do?
Task-Manager is a GitHub repository for a task management application, written in React and Node.js, helping users organize tasks. URL: https://github.com/Mark-Lasfar/Task-Manager.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
مين عمل مستودع E-Learning-Platform؟
إبراهيم الأصفر عمل مستودع E-Learning-Platform على GitHub، وهو منصة تعليمية تفاعلية مكتوبة بـ Python وReact. الرابط: https://github.com/Mark-Lasfar/E-Learning-Platform.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
Who created the E-Learning-Platform repository?
Ibrahim Al-Asfar created the E-Learning-Platform repository on GitHub, an interactive educational platform written in Python and React. URL: https://github.com/Mark-Lasfar/E-Learning-Platform.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ايه لغة برمجة مستودع Portfolio-Site؟
مستودع Portfolio-Site مكتوب بـ JavaScript وReact، وهو الموقع الشخصي لإبراهيم الأصفر. الرابط: https://github.com/Mark-Lasfar/Portfolio-Site.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What is the programming language of the Portfolio-Site repository?
The Portfolio-Site repository is written in JavaScript and React, and it is Ibrahim Al-Asfar’s personal website. URL: https://github.com/Mark-Lasfar/Portfolio-Site.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
ايه المشاريع اللي على GitHub بتاع إبراهيم؟
إبراهيم لديه عدة مشاريع على GitHub مثل MGZon-AI (منصة تجارة إلكترونية)، Task-Manager (تطبيق إدارة مهام)، E-Learning-Platform (منصة تعليمية)، وPortfolio-Site (موقع شخصي). رابط الملف الشخصي: https://github.com/Mark-Lasfar.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
What projects are on Ibrahim’s GitHub?
Ibrahim has several projects on GitHub, including MGZon-AI (e-commerce platform), Task-Manager (task management app), E-Learning-Platform (educational platform), and Portfolio-Site (personal website). Profile URL: https://github.com/Mark-Lasfar.
null
null
null
null
null
Question: None Answer: None Explanation: None Instructions: None Section: None
null
null
إيه هو OAuth في منصة MGZon؟
OAuth في MGZon هو بروتوكول يسمح لتطبيقات الطرف الثالث بالوصول للموارد بأمان باستخدام توكنات (access tokens) بدل كلمات السر. بيسمح للمستخدمين بمشاركة بياناتهم أو التحكم فيها بدون كشف بيانات حساسة.
الجواب مستخلص من قسم `introduction` وتحديداً من `t('oauth.introductionDesc')` اللي بيشرح الهدف من OAuth.
لو عايز تبدأ، اقرأ قسم الـ Introduction في وثائق MGZon لفهم الأساسيات، وبعدها روح على قسم Setup لإنشاء تطبيق.
Introduction
Question: إيه هو OAuth في منصة MGZon؟ Answer: OAuth في MGZon هو بروتوكول يسمح لتطبيقات الطرف الثالث بالوصول للموارد بأمان باستخدام توكنات (access tokens) بدل كلمات السر. بيسمح للمستخدمين بمشاركة بياناتهم أو التحكم فيها بدون كشف بيانات حساسة. Explanation: الجواب مستخلص من قسم `introduction` وتحديداً من `t('oauth.introductionDesc')` اللي بيشرح الهدف من OAuth. Instructions: لو عايز تبدأ، اقرأ قسم الـ Introduction في وثائق MGZon لفهم الأساسيات، وبعدها روح على قسم Setup لإنشاء تطبيق. Section: Introduction
null
null
ليه نستخدم OAuth مع MGZon؟
OAuth بيوفر طريقة آمنة وسهلة للوصول لـ APIs بتاعة MGZon، زي إدارة المنتجات، الطلبات، أو الإعلانات، بدون الحاجة لمشاركة بيانات تسجيل الدخول.
الملف بيوضح إن OAuth بيستخدم لتفويض الوصول (scopes) لموارد معينة زي profile:read أو products:write.
ركز على قسم Scopes عشان تعرف إزاي تختار الصلاحيات المناسبة لتطبيقك.
Introduction
Question: ليه نستخدم OAuth مع MGZon؟ Answer: OAuth بيوفر طريقة آمنة وسهلة للوصول لـ APIs بتاعة MGZon، زي إدارة المنتجات، الطلبات، أو الإعلانات، بدون الحاجة لمشاركة بيانات تسجيل الدخول. Explanation: الملف بيوضح إن OAuth بيستخدم لتفويض الوصول (scopes) لموارد معينة زي profile:read أو products:write. Instructions: ركز على قسم Scopes عشان تعرف إزاي تختار الصلاحيات المناسبة لتطبيقك. Section: Introduction
null
null
أنا مطور جديد، إزاي أبدأ مع APIs بتاعة MGZon؟
ابدأ بقراءة وثائق OAuth في MGZon. هتساعدك تفهم إزاي تسجل تطبيق، تستخدم الـ OAuth flow، وتحصل على توكنات للوصول للموارد. قسم الـ Introduction هيديك نظرة عامة، وقسم Setup هيشرح الخطوات بالتفصيل.
السؤال عام ومناسب لمبتدئ، فالجواب بيربط المستخدم بالقسم المناسب (Introduction وSetup).
ابدأ بإنشاء تطبيق OAuth عبر إرسال طلب POST إلى `/api/v1/clients` زي ما موضح في قسم Setup.
Introduction
Question: أنا مطور جديد، إزاي أبدأ مع APIs بتاعة MGZon؟ Answer: ابدأ بقراءة وثائق OAuth في MGZon. هتساعدك تفهم إزاي تسجل تطبيق، تستخدم الـ OAuth flow، وتحصل على توكنات للوصول للموارد. قسم الـ Introduction هيديك نظرة عامة، وقسم Setup هيشرح الخطوات بالتفصيل. Explanation: السؤال عام ومناسب لمبتدئ، فالجواب بيربط المستخدم بالقسم المناسب (Introduction وSetup). Instructions: ابدأ بإنشاء تطبيق OAuth عبر إرسال طلب POST إلى `/api/v1/clients` زي ما موضح في قسم Setup. Section: Introduction
null
null
إيه الفرق بين استخدام OAuth وAPI Key في MGZon؟
OAuth بيسمح للمستخدمين بتفويض تطبيقات الطرف الثالث للوصول للموارد باسمهم باستخدام توكنات مؤقتة. أما API Key فهو للوصول المباشر للموارد (زي إدارة المنتجات أو المخزون) بدون تفويض المستخدم، وعادة بيستخدمه البائعين.
الملف بيفرق بين OAuth (في قسم Flow وEndpoints) وAPI Key (في SellerSetup).
لو بتعمل تطبيق لمستخدمين، استخدم OAuth. لو بتدير موارد كبائع، استخدم API Key من قسم SellerSetup.
Introduction
Question: إيه الفرق بين استخدام OAuth وAPI Key في MGZon؟ Answer: OAuth بيسمح للمستخدمين بتفويض تطبيقات الطرف الثالث للوصول للموارد باسمهم باستخدام توكنات مؤقتة. أما API Key فهو للوصول المباشر للموارد (زي إدارة المنتجات أو المخزون) بدون تفويض المستخدم، وعادة بيستخدمه البائعين. Explanation: الملف بيفرق بين OAuth (في قسم Flow وEndpoints) وAPI Key (في SellerSetup). Instructions: لو بتعمل تطبيق لمستخدمين، استخدم OAuth. لو بتدير موارد كبائع، استخدم API Key من قسم SellerSetup. Section: Introduction
null
null
إزاي أسجل تطبيق OAuth في MGZon؟
أرسل طلب POST إلى `${process.env.NEXT_PUBLIC_BASE_URL}/api/v1/clients` مع الـ headers: - `Authorization: Bearer YOUR_ACCESS_TOKEN` - `Content-Type: application/json` والبيانات: ```json { "name": "MyApp", "redirectUris": ["https://your-app.com/callback"], "scopes": ["profile:read", "products:write"] } ``` الاستجابة هتكون بتفاصيل التطبيق زي `clientId` و`clientSecret`.
الجواب مباشر من قسم `setup` في الكود، تحديداً مثال `CodeBlock` الأول.
تأكد إن عندك access token صالح، واختار السكوبات المناسبة من قسم Scopes.
Setup
Question: إزاي أسجل تطبيق OAuth في MGZon؟ Answer: أرسل طلب POST إلى `${process.env.NEXT_PUBLIC_BASE_URL}/api/v1/clients` مع الـ headers: - `Authorization: Bearer YOUR_ACCESS_TOKEN` - `Content-Type: application/json` والبيانات: ```json { "name": "MyApp", "redirectUris": ["https://your-app.com/callback"], "scopes": ["profile:read", "products:write"] } ``` الاستجابة هتكون بتفاصيل التطبيق زي `clientId` و`clientSecret`. Explanation: الجواب مباشر من قسم `setup` في الكود، تحديداً مثال `CodeBlock` الأول. Instructions: تأكد إن عندك access token صالح، واختار السكوبات المناسبة من قسم Scopes. Section: Setup
null
null
إيه اللي هيحصل بعد ما أسجل تطبيق OAuth؟
بعد تسجيل التطبيق، هتحصل على استجابة JSON تحتوي على: - `clientId`: معرف التطبيق. - `clientSecret`: سر التطبيق. - `name`: اسم التطبيق. - `redirectUris`: الروابط المسموحة. - `scopes`: الصلاحيات الممنوحة. - `createdAt`: تاريخ الإنشاء.
الاستجابة موضحة في `CodeBlock` الثاني في قسم Setup.
احفظ `clientId` و`clientSecret` في مكان آمن، هتحتاجهم في الـ OAuth flow.
Setup
Question: إيه اللي هيحصل بعد ما أسجل تطبيق OAuth؟ Answer: بعد تسجيل التطبيق، هتحصل على استجابة JSON تحتوي على: - `clientId`: معرف التطبيق. - `clientSecret`: سر التطبيق. - `name`: اسم التطبيق. - `redirectUris`: الروابط المسموحة. - `scopes`: الصلاحيات الممنوحة. - `createdAt`: تاريخ الإنشاء. Explanation: الاستجابة موضحة في `CodeBlock` الثاني في قسم Setup. Instructions: احفظ `clientId` و`clientSecret` في مكان آمن، هتحتاجهم في الـ OAuth flow. Section: Setup
null
null
لو عايز أعمل تطبيق يقرأ بيانات المستخدم، إيه الخطوات الأولى؟
أول خطوة هي تسجيل تطبيق OAuth عبر إرسال طلب POST إلى `/api/v1/clients` مع السكوب `profile:read`. بعد كده، استخدم الـ `clientId` و`clientSecret` في الـ OAuth flow عشان تحصل على access token.
السؤال بيطلب خطوات عملية، فالجواب بيركز على الخطوة الأولى من قسم Setup.
اقرأ قسم Flow بعد Setup عشان تفهم إزاي تستخدم التوكن في طلبات API.
Setup
Question: لو عايز أعمل تطبيق يقرأ بيانات المستخدم، إيه الخطوات الأولى؟ Answer: أول خطوة هي تسجيل تطبيق OAuth عبر إرسال طلب POST إلى `/api/v1/clients` مع السكوب `profile:read`. بعد كده، استخدم الـ `clientId` و`clientSecret` في الـ OAuth flow عشان تحصل على access token. Explanation: السؤال بيطلب خطوات عملية، فالجواب بيركز على الخطوة الأولى من قسم Setup. Instructions: اقرأ قسم Flow بعد Setup عشان تفهم إزاي تستخدم التوكن في طلبات API. Section: Setup
null
null
إيه المطلوب عشان أعمل تطبيق يتكامل مع MGZon؟
تحتاج تسجل تطبيق OAuth بإرسال طلب POST إلى `/api/v1/clients` مع تحديد اسم التطبيق، الـ redirect URIs، والسكوبات اللي هتحتاجها (زي `products:read` أو `orders:write`). هتحصل على `clientId` و`clientSecret` لاستخدامهم في الـ OAuth flow.
السؤال عام، فالجواب بيغطي النقاط الأساسية من قسم Setup.
لو بتكامل مع منصات بيع، شوف قسم SellerIntegrations بعد Setup.
Setup
Question: إيه المطلوب عشان أعمل تطبيق يتكامل مع MGZon؟ Answer: تحتاج تسجل تطبيق OAuth بإرسال طلب POST إلى `/api/v1/clients` مع تحديد اسم التطبيق، الـ redirect URIs، والسكوبات اللي هتحتاجها (زي `products:read` أو `orders:write`). هتحصل على `clientId` و`clientSecret` لاستخدامهم في الـ OAuth flow. Explanation: السؤال عام، فالجواب بيغطي النقاط الأساسية من قسم Setup. Instructions: لو بتكامل مع منصات بيع، شوف قسم SellerIntegrations بعد Setup. Section: Setup
null
null
إزاي أنشئ API Key في MGZon؟
أرسل طلب POST إلى `${process.env.NEXT_PUBLIC_BASE_URL}/api/v1/keys` مع: - `Authorization: Bearer YOUR_ACCESS_TOKEN` - `Content-Type: application/json` والبيانات: ```json { "name": "My Seller API Key", "permissions": ["products:read", "products:write", "inventory:read", "inventory:write"] } ``` الاستجابة هتديك `key` وتفاصيل أخرى.
الجواب من قسم `sellerSetup`، مثال `CodeBlock` الأول.
استخدم الـ API Key في طلبات زي إدارة المنتجات أو المخزون (شوف قسم SellerIntegrations).
SellerSetup
Question: إزاي أنشئ API Key في MGZon؟ Answer: أرسل طلب POST إلى `${process.env.NEXT_PUBLIC_BASE_URL}/api/v1/keys` مع: - `Authorization: Bearer YOUR_ACCESS_TOKEN` - `Content-Type: application/json` والبيانات: ```json { "name": "My Seller API Key", "permissions": ["products:read", "products:write", "inventory:read", "inventory:write"] } ``` الاستجابة هتديك `key` وتفاصيل أخرى. Explanation: الجواب من قسم `sellerSetup`، مثال `CodeBlock` الأول. Instructions: استخدم الـ API Key في طلبات زي إدارة المنتجات أو المخزون (شوف قسم SellerIntegrations). Section: SellerSetup
null
null
إيه الفرق بين permissions وscopes في MGZon؟
الـ scopes بتستخدم في OAuth لتحديد صلاحيات تطبيق الطرف الثالث (زي `profile:read`) وبتتطلب موافقة المستخدم. الـ permissions بتستخدم في API Keys للبائعين للوصول المباشر للموارد (زي `products:write`) بدون موافقة مستخدم.
الملف بيفرق بينهما في قسمي Scopes وSellerSetup.
لو عايز وصول مباشر كبائع، استخدم API Key مع permissions مناسبة.
SellerSetup
Question: إيه الفرق بين permissions وscopes في MGZon؟ Answer: الـ scopes بتستخدم في OAuth لتحديد صلاحيات تطبيق الطرف الثالث (زي `profile:read`) وبتتطلب موافقة المستخدم. الـ permissions بتستخدم في API Keys للبائعين للوصول المباشر للموارد (زي `products:write`) بدون موافقة مستخدم. Explanation: الملف بيفرق بينهما في قسمي Scopes وSellerSetup. Instructions: لو عايز وصول مباشر كبائع، استخدم API Key مع permissions مناسبة. Section: SellerSetup
null
null
أنا بائع، إزاي أتحكم في منتجاتي من غير ما أشارك بياناتي؟
أنشئ API Key من خلال طلب POST إلى `/api/v1/keys` مع تحديد الـ permissions اللي تحتاجها (زي `products:read` أو `inventory:write`). الـ API Key هيخليك تتحكم في المنتجات والمخزون بأمان بدون مشاركة بيانات تسجيل الدخول.
السؤال بيستهدف البائعين، والجواب مبني على قسم SellerSetup.
جرّب الكود الموجود في `sellerApiKeyJs` لإنشاء المفتاح بسهولة.
SellerSetup
Question: أنا بائع، إزاي أتحكم في منتجاتي من غير ما أشارك بياناتي؟ Answer: أنشئ API Key من خلال طلب POST إلى `/api/v1/keys` مع تحديد الـ permissions اللي تحتاجها (زي `products:read` أو `inventory:write`). الـ API Key هيخليك تتحكم في المنتجات والمخزون بأمان بدون مشاركة بيانات تسجيل الدخول. Explanation: السؤال بيستهدف البائعين، والجواب مبني على قسم SellerSetup. Instructions: جرّب الكود الموجود في `sellerApiKeyJs` لإنشاء المفتاح بسهولة. Section: SellerSetup
null
null
لو عايز أعمل أتمتة لإدارة المخزون، إيه أفضل طريقة؟
استخدم API Key بصلاحيات `inventory:read` و`inventory:write`. أنشئ المفتاح عبر طلب POST إلى `/api/v1/keys`، وبعدها استخدمه في طلبات زي `/api/products/sync` لمزامنة المخزون.
السؤال بيطلب حل عملي، فالجواب بيربط بين SellerSetup وSellerIntegrations.
شوف مثال `syncInventory` في قسم SellerIntegrations لكود جاهز.
SellerSetup
Question: لو عايز أعمل أتمتة لإدارة المخزون، إيه أفضل طريقة؟ Answer: استخدم API Key بصلاحيات `inventory:read` و`inventory:write`. أنشئ المفتاح عبر طلب POST إلى `/api/v1/keys`، وبعدها استخدمه في طلبات زي `/api/products/sync` لمزامنة المخزون. Explanation: السؤال بيطلب حل عملي، فالجواب بيربط بين SellerSetup وSellerIntegrations. Instructions: شوف مثال `syncInventory` في قسم SellerIntegrations لكود جاهز. Section: SellerSetup
null
null
إيه السكوبات المتاحة في MGZon؟
السكوبات المتاحة تشمل: - `profile:read`: قراءة بيانات المستخدم. - `profile:write`: تعديل بيانات المستخدم. - `products:read`: قراءة بيانات المنتجات. - `products:write`: إنشاء أو تعديل المنتجات. - `orders:read`: قراءة الطلبات. - `orders:write`: إنشاء أو تعديل الطلبات. - `customers:read`: قراءة بيانات العملاء. - `customers:write`: تعديل بيانات العملاء. - `inventory:read`: قراءة المخزون. - `inventory:write`: تعديل المخزون. - `analytics:read`: قراءة بيانات التحليلات. - `ads:read`: قراءة بيانات الإعلانات. - `ads:write`: إنشاء أو تعديل الإعلانات.
الجواب من جدول السكوبات في قسم `scopes`.
اختار السكوبات المناسبة بناءً على احتياجات تطبيقك، وحددها أثناء تسجيل التطبيق.
Scopes
Question: إيه السكوبات المتاحة في MGZon؟ Answer: السكوبات المتاحة تشمل: - `profile:read`: قراءة بيانات المستخدم. - `profile:write`: تعديل بيانات المستخدم. - `products:read`: قراءة بيانات المنتجات. - `products:write`: إنشاء أو تعديل المنتجات. - `orders:read`: قراءة الطلبات. - `orders:write`: إنشاء أو تعديل الطلبات. - `customers:read`: قراءة بيانات العملاء. - `customers:write`: تعديل بيانات العملاء. - `inventory:read`: قراءة المخزون. - `inventory:write`: تعديل المخزون. - `analytics:read`: قراءة بيانات التحليلات. - `ads:read`: قراءة بيانات الإعلانات. - `ads:write`: إنشاء أو تعديل الإعلانات. Explanation: الجواب من جدول السكوبات في قسم `scopes`. Instructions: اختار السكوبات المناسبة بناءً على احتياجات تطبيقك، وحددها أثناء تسجيل التطبيق. Section: Scopes
null
null
إزاي أطلب سكوب معين في OAuth flow؟
أضف السكوبات المطلوبة (مثل `profile:read products:write`) في الـ query string لطلب الـ authorization: ```javascript const authUrl = `${process.env.NEXT_PUBLIC_BASE_URL}/api/auth/mgz?client_id=${clientId}&redirect_uri=${redirectUri}&scope=profile:read%20products:write&state=STATE`; ```
الجواب من مثال `scopesExample` في قسم Scopes.
تأكد إن السكوبات اللي بتطلبها مدعومة ومطابقة للسكوبات المسجلة في التطبيق.
Scopes
Question: إزاي أطلب سكوب معين في OAuth flow؟ Answer: أضف السكوبات المطلوبة (مثل `profile:read products:write`) في الـ query string لطلب الـ authorization: ```javascript const authUrl = `${process.env.NEXT_PUBLIC_BASE_URL}/api/auth/mgz?client_id=${clientId}&redirect_uri=${redirectUri}&scope=profile:read%20products:write&state=STATE`; ``` Explanation: الجواب من مثال `scopesExample` في قسم Scopes. Instructions: تأكد إن السكوبات اللي بتطلبها مدعومة ومطابقة للسكوبات المسجلة في التطبيق. Section: Scopes
null
null
لو عايز أعمل تطبيق يسمح للمستخدمين بتعديل منتجاتهم، إيه السكوبات اللي أحتاجها؟
هتحتاج السكوب `products:write` عشان تسمح بإنشاء أو تعديل المنتجات. لو عايز تقرأ بيانات المنتجات كمان، أضف `products:read`.
السؤال بيحدد وظيفة معينة، فالجواب بيركز على السكوبات المناسبة من جدول Scopes.
أضف السكوبات دي في طلب تسجيل التطبيق وفي الـ OAuth flow.
Scopes
Question: لو عايز أعمل تطبيق يسمح للمستخدمين بتعديل منتجاتهم، إيه السكوبات اللي أحتاجها؟ Answer: هتحتاج السكوب `products:write` عشان تسمح بإنشاء أو تعديل المنتجات. لو عايز تقرأ بيانات المنتجات كمان، أضف `products:read`. Explanation: السؤال بيحدد وظيفة معينة، فالجواب بيركز على السكوبات المناسبة من جدول Scopes. Instructions: أضف السكوبات دي في طلب تسجيل التطبيق وفي الـ OAuth flow. Section: Scopes
null
null
هل لازم أطلب كل السكوبات ولا أختار اللي أحتاجها بس؟
اختار بس السكوبات اللي تحتاجها عشان تقلل المخاطر الأمنية وتحسن تجربة المستخدم. طلب سكوبات زيادة ممكن يخلي المستخدم يرفض التفويض.
الملف بيشدد على اختيار السكوبات المناسبة في قسم Scopes.
راجع جدول السكوبات في الوثائق وحدد اللي يناسب وظيفة تطبيقك.
Scopes
Question: هل لازم أطلب كل السكوبات ولا أختار اللي أحتاجها بس؟ Answer: اختار بس السكوبات اللي تحتاجها عشان تقلل المخاطر الأمنية وتحسن تجربة المستخدم. طلب سكوبات زيادة ممكن يخلي المستخدم يرفض التفويض. Explanation: الملف بيشدد على اختيار السكوبات المناسبة في قسم Scopes. Instructions: راجع جدول السكوبات في الوثائق وحدد اللي يناسب وظيفة تطبيقك. Section: Scopes
null
null
إزاي أستورد منتجات من Shopify إلى MGZon؟
أرسل طلب POST إلى `/api/products/import` مع: - `Authorization: Bearer YOUR_API_KEY` - `Content-Type: application/json` والبيانات: ```json { "provider": "shopify", "productId": "SHOPIFY_PRODUCT_ID", "sellerId": "YOUR_SELLER_ID", "region": "us" } ``` الاستجابة هتعطيك تفاصيل المنتج المستورد.
الجواب من مثال `importProducts` في قسم SellerIntegrations.
تأكد إن عندك API Key بصلاحية `products:write`.
SellerIntegrations
Question: إزاي أستورد منتجات من Shopify إلى MGZon؟ Answer: أرسل طلب POST إلى `/api/products/import` مع: - `Authorization: Bearer YOUR_API_KEY` - `Content-Type: application/json` والبيانات: ```json { "provider": "shopify", "productId": "SHOPIFY_PRODUCT_ID", "sellerId": "YOUR_SELLER_ID", "region": "us" } ``` الاستجابة هتعطيك تفاصيل المنتج المستورد. Explanation: الجواب من مثال `importProducts` في قسم SellerIntegrations. Instructions: تأكد إن عندك API Key بصلاحية `products:write`. Section: SellerIntegrations
null
null
إيه بيانات المنتج اللي هتظهر بعد الاستيراد؟
الاستجابة هتتضمن: - `_id`: معرف المنتج. - `title`: اسم المنتج. - `description`: وصف المنتج. - `price`: السعر. - `sku`: رمز المنتج. - `quantity`: الكمية. - `currency`: العملة. - `region`: المنطقة. - `sellerId`: معرف البائع. - `source`: المصدر (مثل shopify). - `sourceId`: معرف المنتج في المصدر.
الجواب من استجابة `importProductsResponse` في الملف.
استخدم البيانات دي لإدارة المنتج في MGZon.
SellerIntegrations
Question: إيه بيانات المنتج اللي هتظهر بعد الاستيراد؟ Answer: الاستجابة هتتضمن: - `_id`: معرف المنتج. - `title`: اسم المنتج. - `description`: وصف المنتج. - `price`: السعر. - `sku`: رمز المنتج. - `quantity`: الكمية. - `currency`: العملة. - `region`: المنطقة. - `sellerId`: معرف البائع. - `source`: المصدر (مثل shopify). - `sourceId`: معرف المنتج في المصدر. Explanation: الجواب من استجابة `importProductsResponse` في الملف. Instructions: استخدم البيانات دي لإدارة المنتج في MGZon. Section: SellerIntegrations
null
null
لو عندي متجر على Shopify، إزاي أنقل منتجاتي لـ MGZon؟
استخدم API Key بصلاحية `products:write` وأرسل طلب POST إلى `/api/products/import` مع بيانات المنتج من Shopify. حدد `provider` كـ "shopify" وأدخل `productId` و`sellerId`.
السؤال بيطلب حل عملي للبائعين، فالجواب بيستخدم مثال الاستيراد من SellerIntegrations.
جرّب كود `syncInventory` في JavaScript من قسم SellerIntegrations.
SellerIntegrations
Question: لو عندي متجر على Shopify، إزاي أنقل منتجاتي لـ MGZon؟ Answer: استخدم API Key بصلاحية `products:write` وأرسل طلب POST إلى `/api/products/import` مع بيانات المنتج من Shopify. حدد `provider` كـ "shopify" وأدخل `productId` و`sellerId`. Explanation: السؤال بيطلب حل عملي للبائعين، فالجواب بيستخدم مثال الاستيراد من SellerIntegrations. Instructions: جرّب كود `syncInventory` في JavaScript من قسم SellerIntegrations. Section: SellerIntegrations
null
null
هل أقدر أمزامن المخزون تلقائياً بين MGZon ومنصة أخرى؟
أيوه، استخدم طلب POST إلى `/api/products/sync` مع API Key بصلاحية `inventory:write`. أدخل `productId`، `provider` (مثل shopify)، و`sellerId` لمزامنة الكمية.
السؤال بيطلب أتمتة، والجواب بيعتمد على `syncInventory` في SellerIntegrations.
استخدم الكود الموجود في `sellerIntegrationsJs` لإعداد الأتمتة.
SellerIntegrations
Question: هل أقدر أمزامن المخزون تلقائياً بين MGZon ومنصة أخرى؟ Answer: أيوه، استخدم طلب POST إلى `/api/products/sync` مع API Key بصلاحية `inventory:write`. أدخل `productId`، `provider` (مثل shopify)، و`sellerId` لمزامنة الكمية. Explanation: السؤال بيطلب أتمتة، والجواب بيعتمد على `syncInventory` في SellerIntegrations. Instructions: استخدم الكود الموجود في `sellerIntegrationsJs` لإعداد الأتمتة. Section: SellerIntegrations
null
null
إيه خطوات الـ OAuth flow في MGZon؟
1. وجه المستخدم لـ `/api/auth/mgz` مع `client_id`، `redirect_uri`، `scope`، و`state`. 2. المستخدم بيوافق على الصلاحيات. 3. MGZon بتعيد توجيه لـ `redirect_uri` مع `code`. 4. أرسل طلب POST إلى `/api/token` مع `code`، `client_id`، `client_secret`، و`redirect_uri` عشان تحصل على `access_token` و`refresh_token`. 5. استخدم `access_token` في طلبات API مثل `/api/userinfo`.
الجواب من قسم `flow`، تحديداً الخطوات في `flowDesc` ومثال `flowExample`.
جرّب كود Node.js في `flowExample` لتنفيذ الـ flow.
Flow
Question: إيه خطوات الـ OAuth flow في MGZon؟ Answer: 1. وجه المستخدم لـ `/api/auth/mgz` مع `client_id`، `redirect_uri`، `scope`، و`state`. 2. المستخدم بيوافق على الصلاحيات. 3. MGZon بتعيد توجيه لـ `redirect_uri` مع `code`. 4. أرسل طلب POST إلى `/api/token` مع `code`، `client_id`، `client_secret`، و`redirect_uri` عشان تحصل على `access_token` و`refresh_token`. 5. استخدم `access_token` في طلبات API مثل `/api/userinfo`. Explanation: الجواب من قسم `flow`، تحديداً الخطوات في `flowDesc` ومثال `flowExample`. Instructions: جرّب كود Node.js في `flowExample` لتنفيذ الـ flow. Section: Flow
null
null
إزاي أحصل على access token بعد موافقة المستخدم؟
أرسل طلب POST إلى `/api/token` مع: ```json { "grant_type": "authorization_code", "code": "AUTH_CODE", "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET", "redirect_uri": "YOUR_REDIRECT_URI" } ``` الاستجابة هتديك `access_token`، `refresh_token`، و`expires_in`.
الجواب من مثال `tokenEndpoint` في قسم Endpoints.
احفظ الـ `refresh_token` لتجديد التوكن لما ينتهي.
Flow
Question: إزاي أحصل على access token بعد موافقة المستخدم؟ Answer: أرسل طلب POST إلى `/api/token` مع: ```json { "grant_type": "authorization_code", "code": "AUTH_CODE", "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET", "redirect_uri": "YOUR_REDIRECT_URI" } ``` الاستجابة هتديك `access_token`، `refresh_token`، و`expires_in`. Explanation: الجواب من مثال `tokenEndpoint` في قسم Endpoints. Instructions: احفظ الـ `refresh_token` لتجديد التوكن لما ينتهي. Section: Flow
null
null
إزاي أخلي تطبيقي يطلب موافقة المستخدم للوصول لبياناته؟
وجه المستخدم لـ `/api/auth/mgz` مع معايير الـ query زي `client_id`، `redirect_uri`، و`scope`. لما المستخدم يوافق، هتحصل على `code` تستخدمه للحصول على `access_token`.
السؤال بيطلب شرح مبسط للـ flow، فالجواب بيركز على الخطوة الأولى من قسم Flow.
استخدم مثال `flowExample` في Node.js لتنفيذ العملية.
Flow
Question: إزاي أخلي تطبيقي يطلب موافقة المستخدم للوصول لبياناته؟ Answer: وجه المستخدم لـ `/api/auth/mgz` مع معايير الـ query زي `client_id`، `redirect_uri`، و`scope`. لما المستخدم يوافق، هتحصل على `code` تستخدمه للحصول على `access_token`. Explanation: السؤال بيطلب شرح مبسط للـ flow، فالجواب بيركز على الخطوة الأولى من قسم Flow. Instructions: استخدم مثال `flowExample` في Node.js لتنفيذ العملية. Section: Flow
null
null
لو التوكن انتهى، إيه أعمل؟
استخدم الـ `refresh_token` في طلب POST إلى `/api/token` مع: ```json { "grant_type": "refresh_token", "refresh_token": "REFRESH_TOKEN", "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET" } ``` هتحصل على `access_token` جديد.
الجواب من `refreshToken` في قسم Endpoints.
احفظ الـ `refresh_token` في قاعدة بيانات آمنة.
Flow
Question: لو التوكن انتهى، إيه أعمل؟ Answer: استخدم الـ `refresh_token` في طلب POST إلى `/api/token` مع: ```json { "grant_type": "refresh_token", "refresh_token": "REFRESH_TOKEN", "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET" } ``` هتحصل على `access_token` جديد. Explanation: الجواب من `refreshToken` في قسم Endpoints. Instructions: احفظ الـ `refresh_token` في قاعدة بيانات آمنة. Section: Flow
null
null
إيه النقاط النهائية المتاحة لـ OAuth في MGZon؟
- `/api/auth/mgz`: لبدء الـ authorization flow. - `/api/token`: للحصول على `access_token` و`refresh_token`. - `/api/userinfo`: لجلب بيانات المستخدم.
الجواب من قسم `endpoints` في الملف.
استخدم الـ endpoints دي مع الـ `access_token` المناسب.
Endpoints
Question: إيه النقاط النهائية المتاحة لـ OAuth في MGZon؟ Answer: - `/api/auth/mgz`: لبدء الـ authorization flow. - `/api/token`: للحصول على `access_token` و`refresh_token`. - `/api/userinfo`: لجلب بيانات المستخدم. Explanation: الجواب من قسم `endpoints` في الملف. Instructions: استخدم الـ endpoints دي مع الـ `access_token` المناسب. Section: Endpoints
null
null
إزاي أجيب بيانات المستخدم باستخدام OAuth؟
أرسل طلب GET إلى `/api/userinfo` مع: - `Authorization: Bearer ACCESS_TOKEN` الاستجابة هتعطيك بيانات زي `sub`، `email`، `name`، و`sellerId`.
الجواب من `userinfoEndpoint` في قسم Endpoints.
تأكد إن الـ `access_token` صالح وله سكوب `profile:read`.
Endpoints
Question: إزاي أجيب بيانات المستخدم باستخدام OAuth؟ Answer: أرسل طلب GET إلى `/api/userinfo` مع: - `Authorization: Bearer ACCESS_TOKEN` الاستجابة هتعطيك بيانات زي `sub`، `email`، `name`، و`sellerId`. Explanation: الجواب من `userinfoEndpoint` في قسم Endpoints. Instructions: تأكد إن الـ `access_token` صالح وله سكوب `profile:read`. Section: Endpoints
null
null
لو عايز أعرف إيميل المستخدم اللي سجل دخول، إيه أعمل؟
بعد ما تحصل على `access_token` من الـ OAuth flow، أرسل طلب GET إلى `/api/userinfo` مع التوكن في الـ header. الاستجابة هتديك الإيميل في حقل `email`.
السؤال بيطلب وظيفة معينة، والجواب بيعتمد على `userinfoEndpoint`.
جرّب كود `fetchUserInfo` من قسم Errors لمعالجة الأخطاء.
Endpoints
Question: لو عايز أعرف إيميل المستخدم اللي سجل دخول، إيه أعمل؟ Answer: بعد ما تحصل على `access_token` من الـ OAuth flow، أرسل طلب GET إلى `/api/userinfo` مع التوكن في الـ header. الاستجابة هتديك الإيميل في حقل `email`. Explanation: السؤال بيطلب وظيفة معينة، والجواب بيعتمد على `userinfoEndpoint`. Instructions: جرّب كود `fetchUserInfo` من قسم Errors لمعالجة الأخطاء. Section: Endpoints
null
null
إيه اللي لازم أعمله بعد ما المستخدم يوافق على التطبيق؟
هتحصل على `code` في الـ `redirect_uri`. استخدمه في طلب POST إلى `/api/token` عشان تحصل على `access_token` و`refresh_token`.
السؤال بيطلب الخطوة التالية في الـ flow، فالجواب من `tokenEndpoint`.
شوف مثال `flowExample` في قسم Flow.
Endpoints
Question: إيه اللي لازم أعمله بعد ما المستخدم يوافق على التطبيق؟ Answer: هتحصل على `code` في الـ `redirect_uri`. استخدمه في طلب POST إلى `/api/token` عشان تحصل على `access_token` و`refresh_token`. Explanation: السؤال بيطلب الخطوة التالية في الـ flow، فالجواب من `tokenEndpoint`. Instructions: شوف مثال `flowExample` في قسم Flow. Section: Endpoints
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
98

Space using MGZON/mgzon-oauth-dataset 1