เมื่อสร้างแอปพลิเคชัน คุณจะลงทะเบียนแอปได้โดยใช้คอนโซล Google API จากนั้น Google จะให้ข้อมูลที่คุณต้องใช้ในภายหลัง เช่น รหัสไคลเอ็นต์และรหัสลับไคลเอ็นต์
เปิดใช้งาน Postmaster Tools API ในคอนโซล Google API (หากไม่เห็น API ดังกล่าวในคอนโซล API ให้ข้ามขั้นตอนนี้ไป)
เมื่อแอปพลิเคชันต้องการเข้าถึงข้อมูลผู้ใช้ แอปจะขอขอบเขตการเข้าถึงที่จำเป็นจาก Google
Google จะแสดงหน้าจอขอคำยินยอมแก่ผู้ใช้เพื่อขอให้ผู้ใช้ให้สิทธิ์แอปพลิเคชันของคุณในการขอข้อมูลบางอย่างของผู้ใช้
หากผู้ใช้อนุมัติ Google จะให้โทเค็นเพื่อการเข้าถึงที่มีอายุชั่วคราวแก่แอปพลิเคชันของคุณ
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-12-21 UTC"],[[["Every request to the Postmaster Tools API requires an authorization token obtained through OAuth 2.0 for application identification and access."],["Applications need to be registered using the Google API Console to receive a client ID and client secret for authorization purposes."],["Users are presented with a consent screen to grant access to their data, after which the application receives a short-lived access token for data requests."],["Read-only access to Postmaster Tools data is granted using the 'https://www.googleapis.com/auth/postmaster.readonly' scope."]]],["Applications accessing the Postmaster Tools API must use OAuth 2.0 for authorization, including an authorization token in each request. The process involves registering the application in the Google API Console to obtain a client ID and secret, activating the API, and requesting a specific access scope. Users then see a consent screen; upon approval, the application receives an access token. This token is used to request data, with Google verifying the request before releasing it. The scope for this API is `https://www.googleapis.com/auth/postmaster.readonly`.\n"]]