İşlem feed'leri oluşturma ve yükleme
İşlem feed'leri oluşturup yüklerken aşağıdaki talimatları uygulayın:
- İşlem veri dosyaları için işlem feed'inde açıklanan spesifikasyonu uygulayın. Her yükleme için benzersiz işlem verileri dosya adları kullanmanızı öneririz.
Dosya adına bir zaman damgası ekleyin (ör.
action_1633621547.json). - Dosya kümesi tanımlayıcısında
namealanınıreservewithgoogle.action.v2olarak ayarlayın. Tanımlayıcı dosya örneği için JSON örneğine bakın. Her yükleme için benzersiz tanımlayıcı dosya adları kullanmanızı öneririz. Dosya adına bir zaman damgası ekleyin (ör.action_1633621547.filesetdesc.json). Tanımlayıcı dosyası, genel SFTP sunucusuna yüklenmelidir. - Feed'leri her gün genel SFTP sunucusuna tam yenileme olarak yükleyin.
- SFTP sunucusu ayrıntılarını İş Ortağı Portalı'nın Yapılandırma > Feed'ler bölümünde bulabilirsiniz.
- İş Ortağı Portalı'nın Aktarım > Geçmiş bölümünde feed aktarım durumunu görüntüleyin.
Tanımlar
ActionFeed Tanımı
message ActionFeed { option features.(pb.java).nest_in_file_class = YES; repeated ActionDetail data = 1; }
ActionDetail Tanımı
message ActionDetail { option features.(pb.java).nest_in_file_class = YES; string entity_id = 2; string link_id = 3; // Deep link for action detail string url = 4; // The actions that can be performed using this deep link. At least one // Action must be specified. repeated Action actions = 1; }
İşlem Tanımı
// Information about an Action which could be performed. message Action { option features.(pb.java).nest_in_file_class = YES; // Deprecated fields not to be reused. reserved 1; oneof action_info { AppointmentInfo appointment_info = 2; } }
AppointmentInfo Tanımı
// Indicates that the parent Action is for booking an appointment. // In v2 of the Action feed, the deep link URL is specified on ActionDetail.url, // so this message has no fields and should be set as an empty object // (for example, "appointment_info": {} in JSON). message AppointmentInfo { option features.(pb.java).nest_in_file_class = YES; }
İşlem feed'i örnekleri
İşlem Feed'i
{ "data": [ { "entity_id": "appointments-merchant-1", "link_id": "appointment-link-1", "url": "https://www.partnerwebsite.com/appointment/appointment-partner-1", "actions":[ { "appointment_info": {} } ] } ] }
Tanımlayıcı Dosyası
{ "generation_timestamp": 1677540395, "name": "reservewithgoogle.action.v2", "data_file": [ "action_1677540395_0001.json", "action_1677540395_0002.json" ] }