Skip to content

Commit

Permalink
APIDOC-166: ADD Blog fixture JS
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoranieri committed Jun 15, 2022
1 parent 2a5a376 commit eeb70a6
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/nexmo_developer/spec/javascript/fixtures/emptySearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ const emptySearchFixture = {
"query": "empty",
"params": "query=empty",
"index": "zendesk_nexmo_articles"
},
{
"hits": [],
"nbHits": 0,
"page": 0,
"nbPages": 0,
"hitsPerPage": 1,
"processingTimeMS": 1,
"exhaustiveNbHits": true,
"query": "empty",
"params": "query=empty",
"index": "prod_blogposts"
}
]
};
Expand Down
94 changes: 94 additions & 0 deletions lib/nexmo_developer/spec/javascript/fixtures/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,100 @@ const searchFixture = {
"query": "test",
"params": "query=test",
"index": "zendesk_nexmo_articles"
},
{
"hits": [
{
"locale": {
"locale": "en-us",
"name": "English",
"rtl": false
},
"id": "212554438",
"updated_at": 17662,
"position": 0,
"title": "What are the limitations of the test period?",
"body_safe": "   \n Question \n \n Will I always have to enter all my destination numbers when using Nexmo? \n I saw the test message has '[FREE SMS DEMO, TEST MESSAGE]', will these words be removed after I buy credit? \n I saw the test message has '[Nexmo DEMO]', will these words be removed after I buy credit? \n What will no longer be restricted when I am not in testing mode? \n \n Answer \n When initially subscribing to Nexmo €2 free test credit is granted. At this stage, the following restrictions are in place: \n \n your destination numbers need to be whitelisted in advance of you sending SMS, voice calls, or verify to them unless it's to the handset the account was registered with \n the text [FREE SMS DEMO, TEST MESSAGE] will be included in your SMS  (older accounts will have different wording of [Nexmo DEMO] included instead). \n \n \n Once you move out of the Demo mode you no longer need to whitelist your numbers - you can send to any numbers you want within the local market regulations (see here for the local market regulations and restrictions that apply to your destination numbers) and the text [FREE SMS DEMO, TEST MESSAGE] will no longer be appended to the SMS you send. ",
"outdated": false,
"promoted": false,
"vote_sum": 3,
"comments_disabled": false,
"category": {
"id": "200201483",
"title": "SMS"
},
"section": {
"id": "200621123",
"title": "Outbound SMS",
"full_path": "SMS > Outbound SMS",
"user_segment": "everybody"
},
"user_segment": "everybody",
"label_names": [
"sms",
"test"
],
"created_at_iso": "2015-10-28T10:16:37Z",
"updated_at_iso": "2018-10-29T18:33:59Z",
"edited_at": 17662,
"edited_at_iso": "2018-05-11T17:07:56Z",
"objectID": "218389108",
"_snippetResult": {
"body_safe": {
"value": "using Nexmo? \n I saw the <em>test</em> message has '[FREE SMS",
"matchLevel": "full"
}
},
"_highlightResult": {
"title": {
"value": "What are the limitations of the <em>test</em> period?",
"matchLevel": "full",
"fullyHighlighted": false,
"matchedWords": [
"test"
]
},
"category": {
"title": {
"value": "SMS",
"matchLevel": "none",
"matchedWords": []
}
},
"section": {
"title": {
"value": "Outbound SMS",
"matchLevel": "none",
"matchedWords": []
}
},
"label_names": [
{
"value": "sms",
"matchLevel": "none",
"matchedWords": []
},
{
"value": "<em>test</em>",
"matchLevel": "full",
"fullyHighlighted": true,
"matchedWords": [
"test"
]
}
]
}
}
],
"nbHits": 270,
"page": 0,
"nbPages": 68,
"hitsPerPage": 4,
"processingTimeMS": 6,
"exhaustiveNbHits": true,
"query": "test",
"params": "query=test",
"index": "prod_blogposts"
}
]
}
Expand Down

0 comments on commit eeb70a6

Please sign in to comment.